Got pathauto installed, xml sitemap configured, but aliases aint worked for me.
After checking the select in _xml_sitemap_node_links(), i find that if "LEFT JOIN {xmlsitemap_node} xn" doesnt mathes
records, then "LEFT JOIN url_alias ua" will be supressed as the condition joins URL aliases where id is NULL, therefore no
aliases will be fetched by the select, for a given node.
I just modified xmlsitemap_node.module on line 66 to:
LEFT JOIN {url_alias} ua ON ua.pid = n.nid
This brought up the aliases, while nad no affect to links count.
Should this be the way to fix the issue, or the xmlsitemap_node entries are about to be fixed?
Please let me know what is the correct solution.
Comments
Comment #1
Hoesh commentedGosh, It is a really bad solution I have made.
Do I have to remove the sitemap module, bulk generate the path aliases, the reinstall sitemap?
It would be so unfriendly.
Comment #2
Steven Merrill commentedUpon upgrading to the latest official release, my problem went away. My apologies, please disregard.
hoesh,I'll post a more detailed issue report later, but I'm having the same problem - even with my entire site bulk aliased, some path aliases are not showing up in the XML sitemap. This is true even after an uninstall / re-install.I normally use the global_redirect module, and Google was none too happy about all the redirects going on. I turned global_redirect.module off for the time being while I try to figure this out.Comment #3
darren ohComment #4
urwas commentedOnly a few URL-Aliase are not shown, when overriding the default sitemap weight of a node, its url-alias is shown in sitemap. I'am using 5.x-1.6.
Comment #5
JeremyL commentedYea, all taxonomy terms do not recognize my alias unless I go through and give each their own weight instead of the default.
Comment #6
basvredelingFor taxonomy/term aliases see comment #10 in http://drupal.org/node/202923
Comment #7
avpadernoI am changing the referring version to the one which get the code fixed. Previous versions will not be changed anymore.
Comment #8
avpadernoComment #9
avpadernoFor what I can see, nodes get the path alias.
I am setting the status to fixed.