I believe the patches applied from http://drupal.org/node/83234 introduce a bug that breaks the globalredirect module as described here http://drupal.org/node/89600. Basically, it is trying to find any alias assigned to the currently requested page and issue a redirect to the alias. The problem is that drupal_lookup_path() no longer returns the alias for the current page, returning FALSE instead.
This problem probably exists in HEAD as well, but I don't have an installation on which to confirm that.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | no_alias_for_current.patch.txt | 514 bytes | heine |
Comments
Comment #1
RayZ commentedSorry, this is in the latest 4.7 (and probably 5) cvs not 4.7.3.
Comment #2
chx commentedCan't repro on HEAD.
Comment #3
heine commentedComment #4
heine commentedActually, I can reproduce on HEAD. Patch applies to both HEAD and 4.7 CVS.
Steps to reproduce:
Enable path.module, create an alias for node (eg home).
Create a php node, promote to frontpage:
The node now displays:
<a href="/node" class="active">text</a> on the homepage
<a href="/home" class="active">text</a> on the node/nid itself
Comment #5
heine commentedComment #6
heine commentedOk, the function wrongly caches for example (node as current page)
'node' => false
http://drupal.org/node/65493 contains a patch that also fixes this.
Comment #7
Tobias Maier commentedthe patch at http://drupal.org/node/65493 fixes this.
I think it is the best to work together on one patch...
This is the reason why I set this to duplicate