Jump to content

How to modify request uri before passing it to dispatcher?


Recommended Posts

I want to get rid of some part of URI that I use for SEO purposes like this: myshop/remove-this/rest-of-uri  -->  myshop/rest-of-uri

If I rewrite URL the original URI stays and is passed to dispatcher unless I do external redirect which is not what I want.

The only way I found is to override DispatcherCore::setRequestUri() method, but overriding is not recommended by PrestaShop team.

Can anyone suggest solution for PrestaShop version 1.7.6+ ?

Edited by Marcio Javi (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...