Closed (duplicate)
Project:
Pathauto
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Aug 2009 at 04:14 UTC
Updated:
19 Dec 2009 at 23:38 UTC
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
Comments
Comment #1
mcsolas commentedIm having similar issues. It also appears to be working sometimes, and then make duplicate urls on other occasions.
Comment #2
rgraves commentedWe 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?
Comment #3
rgraves commentedI 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.
Comment #4
mcsolas commentedThanks 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?
Comment #5
pounardI 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:
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.
Comment #6
JirkaRybka commentedI'm sorry to close this as Duplicate in favor of a younger issue, but the other one have a nice patch:
#593048: _pathauto_alias_exists handles language-neutral aliases wrong