Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
this is a regression of Path alias memory cache is broken
per docs drupal_lookup_path() should return FALSE if we did not find an alias or source-path.
Since this commit we return NULL...
because of this I can't redo the patch url() does not recognize if $path == frontpage.
Comment | File | Size | Author |
---|---|---|---|
#7 | drupal_lookup_path_simplify.patch | 1.02 KB | chx |
#2 | path.patch_1.txt | 692 bytes | chx |
drupal_lookup_path_regression.patch.txt | 1.32 KB | Tobias Maier |
Comments
Comment #1
Tobias Maier CreditAttribution: Tobias Maier commentedComment #2
chx CreditAttribution: chx commentedI can't say I like the patch -- the idea is sound, but the implementation is a bit chatty. How about this one?
Comment #3
Tobias Maier CreditAttribution: Tobias Maier commentedgreat!
I like it
Comment #4
robertDouglass CreditAttribution: robertDouglass commentedWhee! More drupal_lookup_path excitement, how nice. Haven't tested yet, just subscribing.
Comment #5
chx CreditAttribution: chx commentedActually... I implemented this for http://drupal.org/node/100301 and that patch has been applied to drupal.org where it runs for days now so this has been tested to death already :)
Comment #6
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #7
chx CreditAttribution: chx commentedas you have comitted the db_result patch there is no more need for this one as db_result now can't return NULL. Sorry for not making this clear previously.
Comment #8
m3avrck CreditAttribution: m3avrck commentedBumping for more eyes, this should go in. Looks ok to me.
Comment #9
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #10
(not verified) CreditAttribution: commented