Jump to content

How can i remove # from the url in prestashop 1.7.5 version?


ahmedjehanzaib

Recommended Posts

Url is looking like this :   /bela-adventure-motorcycle-gloves-black-red.html#/40-alpha_size-s_size

 

Even i set the Route to products in seo & urls to: {category:/}{rewrite}.html but still i am seeing the above url.

Can anybody help me on it.

 thanks

 

Link to comment
Share on other sites

If you have Prestashop 1.7 then try this

1: create a new file in /override/classes/Link.php
2: copy the method getProductLink() from original /classes/Link.php and past in override
3: find the line
 $anchor = $ipa ? $product->getAnchor((int) $ipa, (bool) $addAnchor) : '';
 and change this to
 $anchor = '';

4: clear cache and test

its fix the issue of # but make sure its not show the attibute name at the end of url

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...