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

Use RoutePath in URLFormat middleware #718

Merged
merged 1 commit into from Oct 27, 2022
Merged

Conversation

Kazetsukai
Copy link
Contributor

Currently the URLFormat middleware is resetting the RoutePath to the full URL when used in a sub-router. This change makes it look at the RoutePath, if it exists, and uses that instead of the full URL.

@Kazetsukai
Copy link
Contributor Author

Without this, sub routers break when adding URLFormat middleware. A possible workaround would be to just always use URLFormat at the top level router before any RoutePath is set, but being able to apply this middleware only to a subset of routes is nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants