When we create a node, if the auto-generated url already exists, Pathauto will automatically add a number to the end of the url to prevent identical addresses. For example, say we have a page named "bienvenue". If we create another page that has the same title, the url generated by Pathauto will be "bienvenue-0". However, Pathauto should begin to 2 instead of 0, so we should have "bienvenue-2". It would be more realistic.

Comments

avpaderno’s picture

I agree; it would be preferable if the added number would start from 2.

avpaderno’s picture

Category: bug » feature

Anyway, it's not a bug if the first used number is 0; this report is rather a feature request.

avpaderno’s picture

Title: Auto-incrementation of sames url should start to 2 instead of 0 » Number added to path aliases already used should start from 2
greggles’s picture

Title: Number added to path aliases already used should start from 2 » RFC - Number added to path aliases already used should start from 2
Version: 6.x-1.1 » 7.x-1.x-dev

If we change the functionality it would be in 6.x-2.x.

Personally I'm not sure about this. We do use "1" to mean "2" in some pretty visible places http://drupal.org/node?page=1

Jean-Philippe Fleury’s picture

Hi greggles,

Personally I think that it's a non-sens to begin counting from 0 when it's for a public interface. It's not ergonomics for most people.

It's true that Drupal's pagination starts from 0, but I consider it as a lack, so I don't think that modules should imitate it. Also, there's a proposed patch to change this behavior in Drupal 7: #385270: Make the GET page variable consistent with the real page number

Thanks.

dave reid’s picture

avpaderno’s picture

I agree it makes more sense to make the string added to URL aliases configurable.

mably’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

mably’s picture