Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After some talks on related issues, I ask the maintainers to please consider adding an option to choose between permalinks and aliases as the content for the map.
I would personally prefer creating a map with only permalinks, as these are more permanent and stable while major search engines will show the alias in the SERP, this way or the other.
Note for newcomers: Permalinks are for example node/123
.
Comments
Comment #2
Benia CreditAttribution: Benia commentedComment #3
Benia CreditAttribution: Benia commentedComment #4
Benia CreditAttribution: Benia commentedComment #5
gbyte CreditAttribution: gbyte as a volunteer and commentedAs I explained to you in #2772543: Most URLs generated without aliases, I do not see the benefits you outline of such a setting so I will not be adding this feature. However if this is important to you or the wider community, I will gladly review and commit patches.
Comment #6
Benia CreditAttribution: Benia commentedYes I remember you didn't support this view - I just wanted that we will have a thread on this.
I wouldn't want to bother you in writing a patch but I do hope we'll have more voices here.
Thanks!
Comment #7
gbyte CreditAttribution: gbyte as a volunteer and commentedComment #8
gbyte CreditAttribution: gbyte as a volunteer and commentedComment #9
gbyte CreditAttribution: gbyte as a volunteer and commentedIt's been almost 4 months and apparently there is no interest from the community for the feature to be implemented. I am closing this, but feel free to reopen with a patch.
Comment #10
hoporr CreditAttribution: hoporr commentedReopening the ticket:
We have a usecase, where Google-webmaster-tools shows a warning because of this.
We have a bunch of entries in the sitemap like this:
.../node/2345, and its alias: .../some-alias-for-this-node
We also have a robots.txt file, where we disallow access to any /node/*.
We would like google to only know about the alias, and not any nodes/nid. As a matter of fact, we don't want ANYBODY to know the internal nids.
Yet, those are listed in the sitemap. Consequently in the webmaster tool you get some warnings, like "Sitemap contains URLs that are blocked by robots.txt" and others. The impact on other search engines may be different.
So I second the request for an option to turn off permalinks in the sitemap.
Comment #11
hoporr CreditAttribution: hoporr commentedAs an additional info: The site uses two languages. When we turned off 'en' in the sitemap's language section, the node entries disappeared. It could be that they these links were in the sitemap because for the en version we do ot have a SEO URL entered? I still would second the request to optionally show either permalink or SEO URL.
Comment #12
gbyte CreditAttribution: gbyte as a volunteer and commented@hoporr
The module generates aliased whenever an alias is available. If no alias is available, the permlink is used. This behaviour is intuitive and adding an option to choose between aliases and permlinks would confuse more often than serve these exotic use cases.
In regards to the error you have encountered, there is an issue I have updated with my findings. Please continue over there: #2772543: Most URLs generated without aliases.