I've come up against a bug with URL Aliases when two node titles start with the same string. This only seems to apply when you try to edit the node.
Here is the scenario:
A CCK node type.
Pathauto enabled and set to create url aliases for node type with "something/something/[title]" as alias.
If the "[title]" has a shared string as another "[title]", you can't get to the edit page through the url alias.
Example:
My Pathauto urls for my node type are, "compass/site/[title]".
I have a node with a title "Seattle" and the url alias "compass/site/seattle".
I have another node with a title "Seattle Center" and the url alias "compass/site/seattle_center".
The URL alias for both these nodes works fine, but when you try to edit the second node, it can't resolve the url and defaults to the Drupal welcome page. You can get to the edit page fine if you use the "node/478/edit".
Has anyone else seen this and are there any solutions?
Comments
Comment #1
mshaver commentedHas anyone experienced the same issue? I'd be surprised if I was the only one!
Comment #2
mshaver commentedI'm really surprised that no one has experienced this issue? It seems like a pretty big one to me! Anyone?
Comment #3
saml commentedWhat does the edit URL you're trying to use look like, and where is it used?
(For me all links to edit a node (via the edit tab et.c.) look like:
node/[nid]/edit)Comment #4
mshaver commentedMine have the url alias as the path, with the /edit at the end? I thought that url aliases would all act like this?
In my original example, it would look like this:
I have a node with a title "Seattle" and the url alias "compass/site/seattle/edit".
I have another node with a title "Seattle Center" and the url alias "compass/site/seattle_center/edit".
Comment #5
mshaver commentedI believe this has to do with the "custom_url_rewrite.inc" I have running. It works great except for the issues I've stated. The code I have running is: http://drupal.org/node/66844#comment-126439