Fix bug with percentage redirects, close #1650

This commit is contained in:
Simon Willison 2022-03-07 11:26:08 -08:00
commit c85d669de3
2 changed files with 10 additions and 1 deletions

View file

@ -961,6 +961,10 @@ def test_no_alternate_url_json(app_client, path):
"/fivethirtyeight/twitter-ratio%2Fsenators",
"/fivethirtyeight/twitter-2Dratio-2Fsenators",
),
(
"/fixtures/table%2Fwith%2Fslashes",
"/fixtures/table-2Fwith-2Fslashes",
),
# query string should be preserved
("/foo/bar%2Fbaz?id=5", "/foo/bar-2Fbaz?id=5"),
),