webbusiness23 Posted September 13, 2017 Share Posted September 13, 2017 Hello, Can anyone help me remove the filter name from the URL? What i need to do is this: Before URL: www.test.com/123-tents#/capacity-2_persons After URL: www.test.com/123-tents#/2_persons Basicly, the name of the filter (capacity) has disappeared from the URL. How can i do that? Also, does anyone know how to remove the # character from the URL? As far as i know, Google does not index urls that contain the # character. Thank you! Link to comment Share on other sites More sharing options...
Scully Posted September 13, 2017 Share Posted September 13, 2017 (edited) You did not explain on what kind of filter you are refering to and also not giving any information on your prestashop version in use. Spoken for V 1.6. I'd say it isn't possible. The filter URLs are used by the faceted navigation to retrieve selected values from the URL. You can change the URL to another even shorter name but you cannot get rid of it. Edited September 28, 2017 by Scully (see edit history) Link to comment Share on other sites More sharing options...
webbusiness23 Posted September 27, 2017 Author Share Posted September 27, 2017 I'm using Presta 1.6 What do you mean by "what kind of filter" ? Link to comment Share on other sites More sharing options...
NemoPS Posted September 28, 2017 Share Posted September 28, 2017 Seems like you are using the layered navigation? It's not possible with that, it needs a filter type to draw from Link to comment Share on other sites More sharing options...
webbusiness23 Posted January 12, 2018 Author Share Posted January 12, 2018 On 9/28/2017 at 2:05 PM, NemoPS said: Seems like you are using the layered navigation? It's not possible with that, it needs a filter type to draw from Yes, i'm using the layered navigation. Link to comment Share on other sites More sharing options...
Pierre_d Posted January 12, 2018 Share Posted January 12, 2018 You cannot touch the URL without impacting Prestashop behavior. I was confronted to a situation where I needed to change the URLs. I digged into the PHP code to understand how it works. If you're interested, I've written two technical, detailed articles explaining the internal mechanism of Prestashop URL (1.7) about what I've understood. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now