PrestaShop icon indicating copy to clipboard operation
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

Open florine2623 opened this issue 8 months ago • 1 comments

Prerequisites

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

  1. Go to BO > Shop Parameters > Traffic & SEO
  2. Go to block Schema of URLs
  3. Edit Route to category to {id}-{rewrite}{hello}{bonjour} > Save
  4. Go to FO > Open any category page
  5. 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

florine2623 avatar Jun 20 '24 12:06 florine2623