Jump to:
| Project: | Persistent URL |
| Version: | 6.x-1.0-beta10 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
f you use PURL with multiple path prefix and you have a node-alias that contains the prefix. PURL handle all parts of the url as prefix.
For Example. 1 Prefix per Section and User/Person
1. prefix: management
2. prefix: john
System-URL => Alias
node/10 => john/vita
john/vita => node/10
=> OK
management/john/node/10
=> OK (2 prefix + drupal system path)
management/john/vita
=> Redirect to front. (PURL handle arg(0) and arg(1) as prefix) -> /vita is no valid url
=> But this is a Valid URL: 1 prefix + path-alias
management/john/john/vita
=> OK, 2 prefix + path-alias
To solve this problem, PURL have to respect the node-alias and stop rewrite these urls. Here is a patch to do this. Please test and review. Has anyone a better approach to do this?
Comments
#1
Sorry I didn't post back here earlier, but your patch didn't upload... :(
#2
ohh my fault. i create a new patch against HEAD tomorrow.
#3
did you get the patch to work?
#4
This sounds like a similar problem to what I described in #1305064: PURL results in 404 for system paths that contain the PURL prefix although I'm dealing with actual module defined system paths, and not aliases. @webflo can you upload that patch?