From 02880fbc47381346e6240423417f040823d8ab27 Mon Sep 17 00:00:00 2001 From: Son NK Date: Mon, 30 Dec 2019 21:11:31 +0100 Subject: [PATCH] fix redirection --- app/dashboard/views/domain_detail.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/dashboard/views/domain_detail.py b/app/dashboard/views/domain_detail.py index a5d55545..c0557c26 100644 --- a/app/dashboard/views/domain_detail.py +++ b/app/dashboard/views/domain_detail.py @@ -48,7 +48,7 @@ def domain_detail_dns(custom_domain_id): db.session.commit() return redirect( url_for( - "dashboard.domain_detail", custom_domain_id=custom_domain.id + "dashboard.domain_detail_dns", custom_domain_id=custom_domain.id ) ) elif request.form.get("form-name") == "check-spf": @@ -59,7 +59,7 @@ def domain_detail_dns(custom_domain_id): flash("The SPF is setup correctly", "success") return redirect( url_for( - "dashboard.domain_detail", custom_domain_id=custom_domain.id + "dashboard.domain_detail_dns", custom_domain_id=custom_domain.id ) ) else: @@ -77,7 +77,7 @@ def domain_detail_dns(custom_domain_id): return redirect( url_for( - "dashboard.domain_detail", custom_domain_id=custom_domain.id + "dashboard.domain_detail_dns", custom_domain_id=custom_domain.id ) ) else: