From c4311abc9f9cb23ffdc903047b79e87e3288b6d1 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 6 Feb 2021 22:46:09 +0100 Subject: [PATCH] web: fix link to provider list on overview page --- authentik/admin/views/overview.py | 5 +++-- web/src/pages/admin-overview/AdminOverviewPage.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/authentik/admin/views/overview.py b/authentik/admin/views/overview.py index dd9d78e17..c188c039b 100644 --- a/authentik/admin/views/overview.py +++ b/authentik/admin/views/overview.py @@ -3,6 +3,7 @@ from django.contrib.messages.views import SuccessMessageMixin from django.core.cache import cache from django.http.request import HttpRequest from django.http.response import HttpResponse +from django.urls.base import reverse_lazy from django.utils.translation import gettext as _ from django.views.generic import FormView from structlog.stdlib import get_logger @@ -20,7 +21,7 @@ class PolicyCacheClearView(AdminRequiredMixin, SuccessMessageMixin, FormView): form_class = PolicyCacheClearForm template_name = "generic/form_non_model.html" - success_url = "/" + success_url = reverse_lazy("authentik_core:shell") success_message = _("Successfully cleared Policy cache") def post(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: @@ -39,7 +40,7 @@ class FlowCacheClearView(AdminRequiredMixin, SuccessMessageMixin, FormView): form_class = FlowCacheClearForm template_name = "generic/form_non_model.html" - success_url = "/" + success_url = reverse_lazy("authentik_core:shell") success_message = _("Successfully cleared Flow cache") def post(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: diff --git a/web/src/pages/admin-overview/AdminOverviewPage.ts b/web/src/pages/admin-overview/AdminOverviewPage.ts index ac7a3f79b..b825f8d0e 100644 --- a/web/src/pages/admin-overview/AdminOverviewPage.ts +++ b/web/src/pages/admin-overview/AdminOverviewPage.ts @@ -36,7 +36,7 @@ export class AdminOverviewPage extends LitElement { - +