When the action is "source", the static cache is populated incorrectly with:
$cache['map'][$path_language][$source] = $source = $cached->data;
This sets both the key and value to be the same, both $source.
It should be set to $source = $path.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | source_static_cache-2442779-0.patch | 571 bytes | theapi |
Comments
Comment #1
theapi commentedComment #2
joelpittetThis patch needs review but that makes sense...
Comment #3
davidgrayston commentedThis patch is working well for me
It has resolved an issue where a path lookup by source would return the the source path instead of the alias – I could reproduce the problem that this patch fixes as follows:
$alias will give you 'taxonomy/term/123' but should return 'my-alias'.
This will happen on the second page load
Comment #4
marcelovaniPatch tested. Good spot, it was bugging me for ages.
Comment #5
furamag commentedPatch works fine for me.
Comment #6
ianwesty commentedJust had the same issue as #3, patch worked perfectly!
Comment #7
litwol commentedCan we get a merge on this one? It's been tested and found to be solving a real problem existing over the past 2+ years.
What can we do to get a move on?
Comment #9
fabianx commentedCommitted and pushed to 7.x-1.x.
Thank you!