Remove '/component/phocacart/' from search/query url
Posted: 13 Jul 2020, 19:48
Joomla 3.9.19
PHP 7.4.7
Phoca Cart 3.5.2
Premiere Gantry 5 Template
Hi,
I'm sure this has been asked before but cannot find the answer via forum search.
I need to 'change' the way that the url is formed for my site search, specifically this part of the url:
[domain]/component/phocacart/{search query}
It is only visible when I use the Search Module or the links from the Phoca Cart Brands Module
There is no way that the Joomla router can mask these urls in the same way as regular menu items, but I notice that the search result url is formed without the component or component name in the url on the demo site:
https://www.phoca.cz/phocacartdemo/
If you enter a term in the search module here, the url is e.g. https://www.phoca.cz/phocacartdemo/items?search=audi
I cannot think how to mimic this shorter version without resorting to creating xml files as per the Joomla docs. Or is that the only solution?
I just prefer not to 'broadcast' any obvious ways of hacking the cart software, and it looks more professional in the shorter 'demo' site style.
Thanks
PHP 7.4.7
Phoca Cart 3.5.2
Premiere Gantry 5 Template
Hi,
I'm sure this has been asked before but cannot find the answer via forum search.
I need to 'change' the way that the url is formed for my site search, specifically this part of the url:
[domain]/component/phocacart/{search query}
It is only visible when I use the Search Module or the links from the Phoca Cart Brands Module
There is no way that the Joomla router can mask these urls in the same way as regular menu items, but I notice that the search result url is formed without the component or component name in the url on the demo site:
https://www.phoca.cz/phocacartdemo/
If you enter a term in the search module here, the url is e.g. https://www.phoca.cz/phocacartdemo/items?search=audi
I cannot think how to mimic this shorter version without resorting to creating xml files as per the Joomla docs. Or is that the only solution?
I just prefer not to 'broadcast' any obvious ways of hacking the cart software, and it looks more professional in the shorter 'demo' site style.
Thanks