Closed (duplicate)
Project:
Path redirect
Version:
6.x-1.0-beta7
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Jun 2010 at 10:00 UTC
Updated:
14 Mar 2012 at 16:16 UTC
Jump to comment: Most recent file
Comments
Comment #1
not_Dries_Buytaert commentedad 2) The Pathauto module (http://drupal.org/project/pathauto) automatically updates any aliased/ clean URLs/ paths. Beats me, but now it DOES turn out that disabling the Pathauto module DOES prevent the issue from occurring!!! So, these two modules seem to be some how incompatibility with each other. Hence, the topic title change.
ad 3) I also have the core module Path (6.16) enabled, which is required for this option.
Comment #2
fidot commentedI have just hit this problem too.
The redirects are created correctly when nodes are updated and the "Automatic alias" checkbox within "URL path settings" is not set. However, as soon as that checkbox is set, the redirects are not created.
HTH
Terry
Comment #3
Mac Clemmens commentedI can confirm we are having this issue as well. It is causing broken links on our site when titles of nodes are updated.
Comment #4
checker commented+1
Or port these patches to d6 #358315: drupal_lookup_path() not respects alias' order Then you need not this module for some situations.
Comment #5
tayzlor commentedif you change the setting at admin/build/path/pathauto in the general settings fieldset to -
Create a new alias. Redirect from old alias.
this works.
Comment #6
roderik@ #4: apparently #358315: drupal_lookup_path() not respects alias' order has been ported long ago (and is included in D6.17).
Just an FYI for who stumbles upon this issue.
Comment #7
dave reidThe 'Automatically create redirects when URL aliases are changed.' only works when you manually change an alias, not using pathauto.
Comment #8
not_Dries_Buytaert commentedWhy? Please, describe uses-cases. NB: also other modules may automatically change aliases.
Comment #9
dave reidThe reason is there is no hook in D6 to let me know when an alias changes. We can only rely on manually checking node submission.
Comment #10
not_Dries_Buytaert commentedIt is vital that redirects remains 'in sync with/ linked to' (automatically) updated aliases. Please, consider submitting a feature request for the required hook* in the D6 core. I wish I could submit this myself, but lack the technical knowledge to describe exactly, what you need for my request.
*) http://api.drupal.org/api/group/hooks/6
As a workaround, couldn't a cron job be created to periodically check which aliases have been changed, (e.g., using a function like http://api.drupal.org/api/function/drupal_get_path_alias/6)?
Comment #11
sreynen commentedI don't think a new hook is necessary. The attached patch gets the old alias before pathauto changes it in the presave op and compares it to the new alias pathauto has set in the insert and update ops.
Comment #13
sreynen commentedI think maybe the patch failed automated testing because it was against beta7 rather than beta6.
Comment #14
sreynen commented#11: pathauto_change.patch queued for re-testing.
Comment #15
subir_ghoshAny update on this? Stilled queued up?
Comment #16
sreynen commented@newswatch, the patch passed automated testing, but that only tests that it doesn't break anything covered under automated tests. The patch still needs people (like you) to test and confirm it solves the problem.
Comment #17
thetoast commentedComment #18
YK85 commented+1 subscribing
Comment #19
subir_ghoshnot_Dries_Buytaert:
In case of your (2), I use "Create a new alias. Redirect from old alias."
It works. And works fine.
Comment #20
akalata commentedPatch working for me on Drupal 6.25, Path Redirect 6.x-1.0-rc2 and Pathauto 6.x-1.6.
Comment #21
dave reidThis options is only for when Pathauto is not used. You must use the "Create a new alias. Redirect from old alias." for this functionality and I don't want to duplicate code that already exists and works in Pathauto.