Skip to content

Commit

Permalink
frontend: automatically create aliases for routes with trailing slash
Browse files Browse the repository at this point in the history
Or the other way around, depends on what we happen to define at the
moment.
  • Loading branch information
FrostyX committed Apr 16, 2023
1 parent f6e60c7 commit 8d35bb2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/coprs_frontend/coprs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ def setup_profiler(flask_app, enabled):
})
app.cache = cache

# We don't want to manually define all the routes twice, once with a trailing
# slash and one without it.
app.url_map.strict_slashes = False

app.request_class = get_request_class(app)

from coprs.views import admin_ns
Expand Down

0 comments on commit 8d35bb2

Please sign in to comment.