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

Benia created an issue. See original summary.

Benia’s picture

Issue summary: View changes
Benia’s picture

Issue summary: View changes
Benia’s picture

Priority: Normal » Minor
gbyte’s picture

Title: Please add option to choose between aliases and permalinks » Add option to choose between aliases and permalinks
Status: Active » Postponed

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

Benia’s picture

Yes 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!

gbyte’s picture

gbyte’s picture

gbyte’s picture

Status: Postponed » Closed (works as designed)

It'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.

hoporr’s picture

Version: 8.x-2.7 » 8.x-2.12
Status: Closed (works as designed) » Active
Issue tags: +SEO, +sitemap

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

hoporr’s picture

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

gbyte’s picture

Status: Active » Closed (works as designed)

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