Closed (outdated)
Project:
XML sitemap
Version:
7.x-2.0-rc1
Component:
xmlsitemap_custom.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Aug 2012 at 10:54 UTC
Updated:
6 Dec 2018 at 20:08 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedI'm not convinced it is a bug yet.
Do you have the internationalization module turned on, I assume you must but I don't like to make assumptions on something someone else is doing. How is the file accessed on the internationalized paths via the URL? If it is example.com/sites/mysite/files/myfile.pdf then you want an absolute path and not a relative path.
Comment #2
bessone commentedSimilar problem to me.
I have i18n modules enabled, if i try to add a custom link to my xmlsitemap, the module add the lang prefix, ie:
www.mysite.com/it/my-not-drupal-html-file.html, but the real path of this file iswww.mysite.com/my-not-drupal-html-file.html, how i can add it to sitemap.xml? I need to exclude the lang prefix for this files, because they are not drupal path, but real html files.Comment #3
bessone commentedI found the problem, when xmlsitmap generates links for language_none uses the site default language, but for custom links this is a wrong choice. If they are external url and not drupal pages and in the configuration they are "Language indipendent", the generation don't have to add the default language prefix.
I made a quick and so-so-dirty solution, don't check for custom link, just don't use the default language for all "und" links.
xmlsitemap.generate.inc (line 167)
Comment #4
mgiffordtagging
Comment #5
kristen polClosing since this is so old.