We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Darwin mondo-0984 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 arm64
axum-extra
with axum 0.5 we have the following routes:
Router::new() .route("/about/:subpage", get_internal(super::sitemap::about_handler))
for which axum would correctly
/about/download
/about/download/
Now with axum 0.6 we would:
Router::new() .route_with_tsr("/about/:subpage", get_internal(super::sitemap::about_handler))
for which axum would now
/about/:subpage
From the source it looks like the router just uses the route-name as redirect target, not the actual path from the request.
The text was updated successfully, but these errors were encountered:
RouterExt:{route_with_tsr, route_service_with_tsr}
The fix for this was released in axum-extra 0.4.2 🎉
Sorry, something went wrong.
davidpdrsn
Successfully merging a pull request may close this issue.
Bug Report
Version
Platform
Darwin mondo-0984 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 arm64
Crates
axum-extra
Description
with axum 0.5 we have the following routes:
for which axum would correctly
/about/download
/about/download/
Now with axum 0.6 we would:
for which axum would now
/about/download
/about/download/
, I'm getting a redirect to/about/:subpage
, so not the actual redirect target I need.From the source it looks like the router just uses the route-name as redirect target, not the actual path from the request.
The text was updated successfully, but these errors were encountered: