Scully Posted May 20, 2017 Share Posted May 20, 2017 (edited) Despite the fact we have friendly urls turned on, our serch URLs look like this: https://elektro100.ch/suche?controller=search&orderby=position&orderway=desc&search_query=test3 instead of https://elektro100.ch/suche?orderby=position&orderway=desc&search_query=test3 Anyone has solved to get rid of the controller=search within the URI? It seems to be default behaviour even if we do a scratch install with the latest available 1.6. version. Thank you and regards, Scully Edited May 20, 2017 by Scully (see edit history) Link to comment Share on other sites More sharing options...
Alexandre Carette Posted May 20, 2017 Share Posted May 20, 2017 hi, try to turn off your url rewrite and back on to reload your .htaccess Link to comment Share on other sites More sharing options...
Scully Posted May 20, 2017 Author Share Posted May 20, 2017 Thank you for your reply. I already tried that but with no effect. I also checked that the .htaccess was newly written. I also tried to debug classes/Link.php When I echo the result as html comment before return in public function getPageLink I get the correct result.fron Surprisingly the link in the front end is then ok. As soon as I get rid of the debug echo, the link is wrong again. Any more suggestions? Link to comment Share on other sites More sharing options...
Scully Posted May 20, 2017 Author Share Posted May 20, 2017 I also check a demo install like this one: https://demo16.prestaservice.org/ Same situation there. Friendly URL is running on that site and works with the expection of the search controller. Link to comment Share on other sites More sharing options...
Scully Posted May 20, 2017 Author Share Posted May 20, 2017 hours later .... I figured out that changing the blocksearch-top.tpl helped. So at the end I remove the hidden field controller with its content search. {* Remove this comment if User Friendly URL is not enabled <input type="hidden" name="controller" value="search" /> Remove this comment if User Friendly URL is not enabled *} Any better way is welcome to see. 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