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
Sometimes, you want to define two routes for the same handler, for instance:
@app.route("/url") @app.route("/old-url") async def handler():
(Think legacy)
In that case, which route to return with url_for? Maybe only the named one? Maybe a regular redirection for the old route is the correct way to do?
url_for
The text was updated successfully, but these errors were encountered:
Another issue related to it: if you the static extension twice, the generated routes will have the same name too.
static
Sorry, something went wrong.
Fixed in #142
davidbgk
yohanboniface
No branches or pull requests
Sometimes, you want to define two routes for the same handler, for instance:
(Think legacy)
In that case, which route to return with
url_for
? Maybe only the named one? Maybe a regular redirection for the old route is the correct way to do?The text was updated successfully, but these errors were encountered: