By Josh Lewis on Monday, 19 December 2016
Posted in Technical Issues
Likes 0
Views 397
Votes 0
When ES dashboard is set as the default menu item, linking to stream items doesn't work as seen here:
https://peakfun.com/stream/item/71

I also tested with Protostar template and with the simple URL plugin disabled with the same result. As soon as I swap ES dashboard from being the default menu item, suddenly linking to stream items works as expected. Also note that even when ES Dashboard is the default menu item it works when the menu item's alias is added as seen here:
https://peakfun.com/stream/stream/item/97
Hi Josh,

Regarding this matter, I did a further code study on Joomla's router and it seems like Joomla actually removed the 'stream' segment from the url due to your home menu having the same alias 'stream', but the page is pointing to dashboard instead of stream page.

When you create menu item in Joomla, Joomla actually registered the path or 'route'. So in your home menu item, the path is /steam which point you to dashboard.

Now, in EasySocial stream item, the url is /stream/item/123. Joomla detected the beginning of the url having the same segment as your home menu item and Joomla actually removed the '/stream' segment from your stream url. Now when Joomla pass the route back to EasySocial, the route become /item/123 and EasySocial are not able to 'parse' the url correct.

Due to Joomla's router behaviour, the only way to fix this is to change your home menu item to something else, e.g. 'streams'. This should work.

Hope this help and have a nice day!
Sam
·
Monday, 19 December 2016 13:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Josh,

Regarding your issue, look like your menu item alias for your dashboard is conflicting with EasySocial's stream page. I've logged this into our issue tracker and we will get back to you once we've sorted out this issue.

Thanks for reporting this issue to us
Have a nice day!
Sam
·
Monday, 19 December 2016 11:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Great observation Sam. I was starting to figure out some more routing things after posting this such as the root also working with it's own alias for the default menu item. I changed "stream" to "activity" and now it's working as expected. Thanks Sam for your care and solution.
·
Monday, 19 December 2016 14:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Josh,

You are most welcome. Glad to hear your issue now resolved
Have a nice day!
Sam
·
Monday, 19 December 2016 16:01
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post