Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerated category URL resulted in double html in url #144

Open
Webrela opened this issue Jan 22, 2021 · 5 comments
Open

Regenerated category URL resulted in double html in url #144

Webrela opened this issue Jan 22, 2021 · 5 comments
Assignees
Labels

Comments

@Webrela
Copy link

Webrela commented Jan 22, 2021

Regenerated category URL for category range resulted in html appearing in the main category and sub category URL

/patio.html/bbq-covers.html

Expected:
/patio/bbq-covers.html

@mcpacific
Copy link

I'm experiencing the same thing. Any idea when a fix may be coming?

@Luc4G3r
Copy link

Luc4G3r commented Mar 19, 2021

Can confirm this issue. Although I found it to happen in one of my live projects, I could not reproduce it in a vanilla installation with sample data installed.

@Luc4G3r
Copy link

Luc4G3r commented Mar 22, 2021

Hello again. Turns out that Magento 2 has an option to add .html suffix to url rewrites in the backend under Stores -> Configuration -> Catalog -> Catalog -> Search Engine Optimization.
Our live shop, which was migrated from Magento 1.9, had category url keys including an .html suffix which in combination with the default setting of Magento 2 adding the suffix to product and category url rewrites automatically resulted in urls including /category.html/product.html as well as /category.html.html.
I'm pretty sure this is not a bug of this package but rather a result of misconfiguration.

@xtremevision
Copy link

I have experienced this issue just now. All our categories are without .html suffix, and backend catalog config is set to add the .html suffix. The result is the top level category with one .html suffix, whilst all subcategories have double .html.html suffixes. There's no immediate obvious reason this should be happening. Any ideas? Using Magento 2.4.0.

@xtremevision
Copy link

Ok, so I think I know what's going on. I am using Magmi (m2) to import products with categories created on the fly. It looks like Magmi is creating the "url_path" attribute with the .html suffix, so when I run the url regeneration, of course I get double .html.html. Sounds like a bug in Magmi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants