- Issue created by @svenryen
- Merge request !8Issue #3484625: When there's a path that is a subpath of trans_path, the... → (Open) created by svenryen
- 🇳🇴Norway svenryen
svenryen → changed the visibility of the branch 1.0.x to hidden.
We have a view that has the path "/program" and trans_path "/programmes".
When we generate path aliases with a path auto pattern that starts with "/programmes", the strReplaceFirst function in TvpProcessor causes our aliases to be mangled into "/programmes/blah".
If we count the number of '/' in the original and translated paths when we do the check in "getOutboundPath", we would avoid this situation from occurring, as the rewriting of our patterns wouldn't happen unless there we have the same number of slashes in the $path and the $view_path["path"].
Write a few tests to ensure this change doesn't cause regressions and that as the module matures this issue doesn't reoccur.
None.
None.
Active
1.1
Code
svenryen → changed the visibility of the branch 1.0.x to hidden.