PrestaShop
PrestaShop copied to clipboard
BO - Traffic & SEO > You can add any keyword to a Schema of URLs, when you go to the FO, you will find a 404
Prerequisites
- [X] I understand and accept the project's code of conduct.
- [X] I have already searched in existing issues and found no previous report of this bug.
Describe the bug and add attachments
When I edit my Schema of URL with non-existing keyword, I will find an 404 page.
https://github.com/PrestaShop/PrestaShop/assets/16019289/a9e0ce9e-8f1c-4e30-ac15-4478f33d8bad
Expected behavior
I should not be able to Save the form if I add an keyword that does not exist in the given list.
Steps to reproduce
- Go to BO > Shop Parameters > Traffic & SEO
- Go to block Schema of URLs
- Edit Route to category to
{id}-{rewrite}{hello}{bonjour}
> Save - Go to FO > Open any category page
- See 404 error The page you are looking for was not found. :x:
PrestaShop version(s) where the bug happened
8.0.x, 8.1.7, develop
PHP version(s) where the bug happened
8.1
If your bug is related to a module, specify its name and its version
No response
Your company or customer's name goes here (if applicable).
No response