简体   繁体   中英

JRoute giving wrong path for new menu items

Since a recent point in time (I believe since I installed the paid version of HikaShop) JRoute gives the wrong SEF url for all new menu items and 404 errors.

For example JRoute::_('index.php?Itemid=<OLD MENU ITEMID>') returns the correct url path /<MENU ITEM ALIAS> (and results in NO 404 errors)...

... but JRoute::_('index.php?Itemid=<NEW MENU ITEMID>') returns the wrong url path /Products/<MENU ITEM ALIAS (and results in 404 errors)

The behaviour can be seen for all new menu items whether or not using the HikaShop component - so it may be nothing to do with HikaShop.

I have checked the output of router.php for HikaShop and it appears to be working okay

I would like to debug JRoute further but in Joomla 3.5 cannot find where this class is defined. Joomla 1.6 and 1.7 APIs refer to methods.php, but I cannot find this file for 3.5 API

So at a loss as to how to proceed... Until I get this sorted the site is unusable...

Turned out to be a Joomla problem, which has long history: new menu item - wrong address . After rebuilding the menu items the issue with /Products/ in the path was resolved.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM