I'm using D7.2 and XML Sitemap 7.X-2.0-beta3.
The sitemap doesn't show the url aliases for all node types. It does for some node types and for views.
I tried with Prefetch URL aliases on and off but both gave no result.

Comments

Anonymous’s picture

Category: bug » support
Status: Active » Fixed

You must admin/structure/types, then edit the content types and enable xmlsitemap for that content type.

Anonymous’s picture

The sitemap is enabled for these content types and the node/# for that content type are in the sitemap.xml file but not the url-aliases.

Anonymous’s picture

Status: Fixed » Postponed (maintainer needs more info)

You need to upgrade to D7.4 and look into the Global Redirect module. The xmlsitemap module is using the Drupal API to get the URI string for the content. If the Drupal API is returning the node/# instead of a path alias you don't have an xmlsitemap issue but one somewhere else.

dave reid’s picture

Are you using multiple languages on your site?

Anonymous’s picture

Yes, I use two languages. Does this impact XMLsitemap?

dave reid’s picture

If you are not using separate domains per language plus the xmlsitemap_i18n module, then the module can only show aliases that are in Language neutral or your default language. I'm guessing you have lot of aliases that are associated with the non-default language. Those cannot be used when viewing the site in your default language - which is core functionality. XML sitemap is only following core.

Anonymous’s picture

Thanks for the explanation. You gave me ideas and I'll look for a workaround.

dave reid’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing due to lack of response.