Broken link on your demo template homepage

Support desk for Villa Belluci Joomla Hotel Template
GK User
Tue Aug 25, 2015 8:13 pm
There are some incorrect links on your homepage (https://demo.gavick.com/joomla3/hotel/). Look at the "check offer" link on the solidres block : https://demo.gavick.com/joomla3/hotel/component/solidres/?view=reservationasset&id=1&Itemid=640#room_type_details_handler_5. It seems that problem comes from "&Itemid=640" in the url (menu id of homepage). When you remove it, it works.
I have the same problem on my website. Links displayed by News Show Pro modules on my homepage includes this "&Itemid=640" parameter, so it doesn't work.
How may I solve this problem ?
User avatar
Fresh Boarder

teitbite
Thu Aug 27, 2015 8:15 pm
Hi

"Itemid=640" is being added by joomla and is basicaly an information where page has to be oppened. If this is not working correctly than please check menu item with id 640. Try delete it and create one more time with the same configuration.
User avatar
Moderator

GK User
Fri Aug 28, 2015 7:26 am
Hello,
I have checked my menu item having Itemid=640 (homepage) is OK.
I have checked the code : the problem occurs on articles that are not linked to a menu item. In this case, Joomla router decide that the page has to by display with "homepage" menu context, so that's why it adds "Itemid=640" in the url.
See this code in components\com_content\helpers\route.php line 229 :
Code: Select all
      // If not found, return language specific home link
      $default = $menus->getDefault($language);

I think this is a limitation of your module. You allow users to create a news show pro module that link directly to articles from a category, but you are not sure that articles are link to menu item. This is not consistent with Joomla philosophy. This problem occurts in you demo homepage in the solidres link that doesn't work (see this link : https://demo.gavick.com/joomla3/hotel/c ... _handler_5).
I think we should add a field "menu item" in you News show pro module that tell what menu item to use to display articles.
User avatar
Fresh Boarder

GK User
Fri Aug 28, 2015 8:44 am
Another solution : for each news link, we may take the itemid of "More news URL" fields.
The works only for "grid news" mode, because on other mode, this field is not active.
User avatar
Fresh Boarder

teitbite
Sat Aug 29, 2015 5:17 pm
Hi

Och, so this is the problem. Acctually this is how joomla works. If landing page is not created than articles are opened on frontpage.

Here more informations about it: https://www.gavick.com/documentation/qu ... s-working/
User avatar
Moderator


cron