Skip to content

Routing: Disable strict-slash matching for compatibility #150

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

Closed
wants to merge 1 commit into from

Conversation

mreid-tt
Copy link
Contributor

@mreid-tt mreid-tt commented May 17, 2025

Description:
Werkzeug 2.2.3+ introduced stricter handling of trailing slashes in route definitions, causing requests to fail if the exact slash format isn't matched. This PR disables strict_slashes globally in the Flask app factory to restore the previous behavior of accepting routes with or without trailing slashes. This improves compatibility and reduces the likelihood of 404 errors due to minor route formatting differences.

@mreid-tt mreid-tt self-assigned this May 17, 2025
@mreid-tt mreid-tt changed the title Turn off strict-slash matching Routing: Disable strict-slash matching for compatibility May 17, 2025
@mreid-tt mreid-tt closed this May 18, 2025
@mreid-tt mreid-tt deleted the disable-strict-slash branch May 18, 2025 13:29
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.

2 participants