Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a method to retrieve the original route path #6003

Merged
merged 1 commit into from May 2, 2023

Conversation

aschempp
Copy link
Member

@aschempp aschempp commented May 2, 2023

While building some custom routing behaviour, I noticed that our PageRoute::getPath() returns the route path with url prefix and suffix. However, this makes it impossible to manipulate the original path. PageRoute::setPath() changes only the path but not the prefix and suffix. Now at least one could do PageRoute::setPath(/* ... */ PageRoute::getOriginalPath() /* ... */)

@aschempp aschempp added the bug label May 2, 2023
@aschempp aschempp added this to the 4.13 milestone May 2, 2023
@aschempp aschempp requested a review from a team May 2, 2023 05:17
@aschempp aschempp self-assigned this May 2, 2023
@leofeyer leofeyer changed the title Added method to retrieve original route path Add a method to retrieve the original route path May 2, 2023
@leofeyer leofeyer merged commit 545eb2a into contao:4.13 May 2, 2023
18 checks passed
@leofeyer
Copy link
Member

leofeyer commented May 2, 2023

Thank you @aschempp.

@aschempp aschempp deleted the fix/route-path branch May 2, 2023 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants