Saturday, 02 August 2014 00:33
beggarly

Error in link generated in site map

Report Xmap bugs on this forum.

Error in link generated in site map

Postby WeDontByte » Tue Feb 07, 2012 1:54 pm

Joomla 2.5.1 and Xmap 2.2.1

This works great except that it appears to generate an incorrect link from the site map to the page when the menu item to that page is a URL internal link.

Example:

Menu Item URL: .... index.php/hps-gallery-m/category/28-hps-david-platt
Site Map link URL: .. index.php/hps-gallery-m/category/28-hps-david-platt/hps-useful-m/hps-site-map-m

The URL of the site map page is .... index.php/hps-useful-m/hps-site-map-m

So Xmap is appending its own URL extension to the required URL when the Menu Item is an internal URL. It seems to work OK with external URLs.

Regards.
WeDontByte
Fresh Boarder
Fresh Boarder
 
Posts: 4
Joined: Tue Feb 07, 2012 1:45 pm

Re: Error in link generated in site map

Postby guilleva » Wed Feb 08, 2012 3:36 pm

Hi, thanks for posting, let me see if I get this clear:

so do you have an menu item that you manually specified the sef url "index.php/hps-gallery-m/category/28-hps-david-platt"? so, I mean, is it a "external url" menu item but instead of specifying a real external url, you introduced the a internal SEF url into it? is that right?
User avatar
guilleva
Administrator
Administrator
 
Posts: 1527
Joined: Wed Sep 12, 2007 3:10 am
Location: San José, Costa Rica

Re: Error in link generated in site map

Postby WeDontByte » Wed Feb 08, 2012 3:57 pm

That's correct. I've invoked the External URL menu option but inserted an Internal URL (index.php/....)

Maybe there's a better way of doing it! I'm very much a "new boy" where Joomla is concerned, but I wanted to generate entries in the Site Index of Phoca Gallery generated category pages of images. So I created Sub-menus of External (actually Internal) URLs but without having them displayed. Xmap created the Site Map entries exactly as I'd hoped but unfortunately the link back to the pages fails as I'd described.

If it helps, my web site is www.heswallphotosoc.co.uk - the Phoca Gallery categories appear under the "Gallery" menu and the Site Map can be found via "Useful Stuff".

Many thanks.

PS I should have mentioned that I've disabled these "dummy" menus. The only one left that displays this problem is "Last Updated...".
WeDontByte
Fresh Boarder
Fresh Boarder
 
Posts: 4
Joined: Tue Feb 07, 2012 1:45 pm

Re: Error in link generated in site map

Postby guilleva » Thu Feb 09, 2012 12:31 am

Hi, thanks for replying. Yes, it looks like there is a bug with Xmap on these cases, but It not good idea to use the SEF urls for internal links, you should use internal urls instead, in the format
index.php?option=com_mycompoennt&...

But for doing that, you should know how to generate them. I'm going to investigate this bug and fix it, also, I'm going to release a extension for phoca gallery for Xmap 2 but I don't think that Im going to be able to do it until the weekend, sorry.

Thanks,

Guillermo
User avatar
guilleva
Administrator
Administrator
 
Posts: 1527
Joined: Wed Sep 12, 2007 3:10 am
Location: San José, Costa Rica

Re: Error in link generated in site map

Postby WeDontByte » Fri Feb 10, 2012 10:37 am

Hi

Just thought I'd update you. I managed to work out how to specify the "External" URL as

index.php?option=com_phocagallery&Id=nn

this format works in the Xmap generated Site Map, although clicking on the Site Map link doesn't produce quite the same results as navigating to the page via the Menu and Phoca Gallery category link - but I can live with that!!

Thanks.
WeDontByte
Fresh Boarder
Fresh Boarder
 
Posts: 4
Joined: Tue Feb 07, 2012 1:45 pm

Re: Error in link generated in site map

Postby neon26 » Sun Feb 19, 2012 2:45 pm

I have the same problem but not how to fix it.

Any solution?

Thanks
neon26
Fresh Boarder
Fresh Boarder
 
Posts: 1
Joined: Sun Feb 19, 2012 2:43 pm

Re: Error in link generated in site map

Postby guilleva » Mon Feb 20, 2012 1:49 am

Hi, I was checking into this a little bit deeper and it looks like that there is no problem with Xmap. I you have to do external menu items using SEF urls, then make sure that it starts with a slash, eg: '/index.php/my-url'. If you site is running on a subfolder, then add it as well, eg: '/joomla/index.php/my-url'.

Note, don't expect Xmap to expand it because it won't be able to know know what component it belongs to. For example, if it a menu ling to a photo gallery, it won't include the subgalleries or photos links into the sitemap under those menu items.

@WeDontByte, it's not a good SEO practice to have different urls for the same content, so I suggest you to make sure to add all the required params for the URL to make sure it looks the same, probably you are missing the Itemid, I assume you have a menu item for phocagallery, so find what its ID is and add it to the url, something like:
index.php?option=com_phocagallery&Id=nn&Itemid=XX

Regards,

Guillermo
User avatar
guilleva
Administrator
Administrator
 
Posts: 1527
Joined: Wed Sep 12, 2007 3:10 am
Location: San José, Costa Rica


Return to Bugs



Who is online

Users browsing this forum: No registered users and 6 guests

cron