duplicate url aliases

giorgio79 - August 2, 2009 - 04:14
Project:Pathauto
Version:6.x-2.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello,

This was reported to me by Google Webmasters, that I have duplicated urls in the sitemap.

The way they got in was this:
One user posted a node with "Morning Breeze"
then came another one and posted
"The Morning Breeze"

Somehow this slipped through pathauto's uniqueness check and the urls ended up the same way.

instead of generating morning-breeze-0, it generated the same url for the second post as well.

Any ideas? Anyone had this?

Cheers,
G

#1

mcsolas - August 12, 2009 - 14:47

Im having similar issues. It also appears to be working sometimes, and then make duplicate urls on other occasions.

#2

rgraves - November 5, 2009 - 14:50

We are noticing this problem as well on occassion. We're running pathauto 6.x-1.1 and path 6.13. Has anyone found a solution to this?

#3

rgraves - November 5, 2009 - 17:11

I figured out what was causing the problem for us - it had to do with paths and the Locale core module. "Locale" had been enabled, but wasn't really necessary.

We went and looked at the duplicate URL aliases (Site Building -> URL Aliases) and noticed that the original node had language = '' while the new node that had the same alias had language = 'en'. We disabled the Locale module and the problem no longer occurs when you create a new node.

For nodes that already existed with duplicate aliases, we went in and manually changed them.

#4

mcsolas - November 16, 2009 - 22:42

...noticed that the original node had language = '' while the new node that had the same alias had language = 'en'. We disabled the Locale module and the problem no longer occurs when you create a new node.

Thanks for posting this. Say disabling the locale modules isn't an option ( I have multilingual sites running ) .. I just have to make sure all my content is set to a language. I had hacked/solved this by prefixing the nid in each url.

Is there a way to force language selection... ie.. not allow nodes to be language = '' when the node is being created or edited?

#5

pounard - November 26, 2009 - 12:59

I have the same problem when I create a node with the same title as a taxonomy term, I got a duplicate at the end.
Example:
Taxonomy term name: "Notre offre", path generated: "notre-offre"
Node title: "Notre offre", path generated: "notre-offre"
What I get in aliases table is:

Alias System Language
notre-offre taxonomy/term/36 All
notre-offre node/406 French

The is no i18n on site, the only enabled language is French, node is language independent. This is really problematic, because it happens all the time. Prefixing path aliases is not an option for us.

EDIT: PS: Got this error with 6.x-1.1 version.

 
 

Drupal is a registered trademark of Dries Buytaert.