Higino Posted May 13, 2021 Share Posted May 13, 2021 Hi guys, I looked around but it seems people mainly want to remove the URL language suffix, while I want to do the opposite. Let me explain. I had English and Portuguese installed as languages. I decided I wanted to disable English and keep Portuguese only. Problem is, if I only have one language, Prestashop decides I don't need the language suffixes and removes them from item URLs, which breaks them. I get an error 500 when trying to access items without the language suffix (by just clicking the item), while if I manually put the suffix back on the URL it gives me a "Couldn't find that item" error. If I add any other language, like Spanish, everything goes back to normal. As long as I have 2 or more languages the suffix comes back and I can access the items. But this store is targeted toward Portuguese customers and so it makes no sense to have any other languages to translate everything to. So how do I keep just 1 language without breaking the URLs? Thanks! Link to comment Share on other sites More sharing options...
pedepot Posted May 13, 2021 Share Posted May 13, 2021 Hello, This seems to be a problem of cache. I would suggest that you google how to clear Prestashop cache. If you are using PS 1.7.x go to performance and click on the button "empty cache". There is another configuration option related to URL redirection. You should allow your website to redirect to the accurate product url with or without the language suffix. Link to comment Share on other sites More sharing options...
Higino Posted May 13, 2021 Author Share Posted May 13, 2021 (edited) 27 minutes ago, pedepot said: Hello, This seems to be a problem of cache. I would suggest that you google how to clear Prestashop cache. If you are using PS 1.7.x go to performance and click on the button "empty cache". There is another configuration option related to URL redirection. You should allow your website to redirect to the accurate product url with or without the language suffix. Hi friend That's a good guess but no, I did try that. And I tried again just now, just to make sure. I did CTRL + F5 on different browsers too. Now for the redirection bit, that seems interesting. How do I do that? I looked it up but results are usually about someone who wants to remove the language suffix, and that's not what I want to do. Thanks! EDIT: I'm in debug mode, if that's any relevant. Edited May 13, 2021 by Higino (see edit history) 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