diff --git a/authentik/core/urls.py b/authentik/core/urls.py index 7a97c1f379e8..b4b199d33cc6 100644 --- a/authentik/core/urls.py +++ b/authentik/core/urls.py @@ -2,7 +2,7 @@ from django.conf import settings from django.contrib.auth.decorators import login_required -from django.urls import path +from django.urls import path, re_path from authentik.core.api.application_entitlements import ApplicationEntitlementViewSet from authentik.core.api.applications import ApplicationViewSet @@ -55,8 +55,8 @@ BrandDefaultRedirectView.as_view(template_name="if/user.html"), name="if-user", ), - path( - "if/flow//", + re_path( + r"^if/flow/(?P[-\w]+)/?$", # FIXME: move this url to the flows app...also will cause all # of the reverse calls to be adjusted FlowInterfaceView.as_view(),