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

Regenerate URL based on saved URL Key #152

Open
MisterH001 opened this issue Jul 30, 2021 · 3 comments
Open

Regenerate URL based on saved URL Key #152

MisterH001 opened this issue Jul 30, 2021 · 3 comments
Assignees
Labels

Comments

@MisterH001
Copy link

It seems that when I am regenerating URLs it automatically creates the url from the name (category in this case). However I need the URL to be regenerated based on the admin entered URL Key (and NOT regenerated based on the name).
https://i.imgur.com/gKwLBI4.png

e.g.:
My category name: My Lovely Category
Category URL Key defined as: my-url-key
URL Key generated after running php bin/magento ok:urlrewrites:regenerate --entity-type=category --store-id=3 --no-regen-url-key --no-reindex: my-lovely-category

I have tried using --no-regen-url-key but it doesn't work.
The URL Key in admin is correct, but the actual url used on the frontend is incorrect.

Am I doing something wrong?
Thanks

@mjoraid
Copy link

mjoraid commented May 26, 2022

I thought I was doing something wrong.
This bug is kinda frustrating to have the URL Keys in url_rewrite mistaching the URL KEY entered in the admin.

@mjoraid
Copy link

mjoraid commented May 26, 2022

I'm willing to donate if this bug gets fixed. It is crucial to have the URL KEY match what is on the backend entered by the admin.

@alexandrosk
Copy link

@MisterH001 @mjoraid I have the same issue, any luck what so ever? I will try to ship a fix around this

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

4 participants