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

Hoesh’s picture

Category: bug » support
Priority: Critical » Normal

Gosh, 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.

Steven Merrill’s picture

Upon 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.

darren oh’s picture

Status: Active » Closed (fixed)
urwas’s picture

Version: 5.x-1.x-dev » 5.x-1.6
Status: Closed (fixed) » Active

Only 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.

JeremyL’s picture

Yea, all taxonomy terms do not recognize my alias unless I go through and give each their own weight instead of the default.

basvredeling’s picture

For taxonomy/term aliases see comment #10 in http://drupal.org/node/202923

avpaderno’s picture

Version: 5.x-1.6 » 5.x-2.x-dev

I am changing the referring version to the one which get the code fixed. Previous versions will not be changed anymore.

avpaderno’s picture

Title: Node path alias wont resolve » Node path aliases are not resolved
avpaderno’s picture

Status: Active » Fixed

For what I can see, nodes get the path alias.
I am setting the status to fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.