Closed (fixed)
Project:
Pathauto
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Dec 2007 at 12:05 UTC
Updated:
25 Feb 2008 at 09:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commented+1 Tracking
txcrew
Comment #2
gregglesand here's a patch that works under the following scenarios:
// If the box is checked we should alias it
// If the box is not checked but it's already being managed by Pathauto we should alias it
// If the box is not checked, it's not being managed by Pathauto, but this is the submit, we should do it
Comment #3
gregglesComment #4
gregglesSlight problem with this patch (or maybe it was another one) - since none of the aliases from before 5.x-2.1+ are in url_alias_extra, pathauto thinks that the admin manually created all of them...
I'm starting to wonder if this can work in this way without a patch to core...
Comment #5
wim leers+1
This is a *major* annoyance at the moment.
Comment #6
gregglesIt doesn't need a +1 - it needs testing, reviews, and a few other patches.
See http://groups.drupal.org/node/8318 for the roadmap of what needs to be fixed to make this work properly.
Unassigning myself.
Comment #7
wim leersI'm sure that's what it needs. That's what all issues need. I'm only showing that there's another person bugged by this. That's all :)
Thanks for those links. If I find the time, I'll work on it.
Comment #8
neclimdulinterested party subscribing.
Comment #9
gregglesThis patch itself works fine. We just need work on the other two issues in http://groups.drupal.org/node/8318
Applied to both 5.x-2 and 6.x.
Comment #10
wim leersYay for the progress! Thanks greggles :)
Comment #11
giggler commentedHas this been applied to 5.x-2.x-dev (just downloaded today)? Because it see to still do the same. Uncheck Automatic alias and change the alias url, then hit submit. It will say:
* The menu item Aliasname has been updated.
* The Page has been updated.
However the menu still goes to the old alias...and I can't get the alias to change. Typing in the new alias directly will give you the same page.
Comment #12
gregglesThis exact bug has been fixed (I believe) but in general this whole area of functionality doesn't work well and I plan to take it out. There's just no way to really make this work well outside of core. It's on my list of things to fix in core for Drupal7, though.
See http://groups.drupal.org/node/8318 and http://groups.drupal.org/node/8063 for more information on why this is broken and why I'm going to take it out.
Comment #13
giggler commentedRight now, it seem like the way to get around this is just uncheck "automatic alias", change the path and hit save. It will sometimes give an error saying db is duplicated (but the new alias is still created), so that's not a problem.
Then go to Site building > URL aliases and delete the old alias (content/oldalias), and the new alias actually will take affect for the menu.
So the problem if you do not do the above seem to be that there are two alias going to the same system node (node/# was duplicated). The way to solve this in the coding "might" be that when there is an alias where the system node is duplicated, ask "do you want to replace this". Once you click yes, then it will delete the old one. This does not solve the problem of the "automatic alias" being checked still afterwards, but at least the new updated alias will work and I'm not bothered it being checked since you still can uncheck and redo the process...as long as the alias actually changes.
I'm not a coder, so I don't know if this is possible, but it seem like a workaround for this part of the bug...
Comment #14
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.