mirror of
https://github.com/simple-login/app.git
synced 2025-10-21 12:47:07 +08:00
redirect user to subdomain page if a subdomain is deleted
This commit is contained in:
parent
a8c86785d1
commit
ffc04c7fe9
1 changed files with 4 additions and 1 deletions
|
@ -291,6 +291,9 @@ def domain_detail(custom_domain_id):
|
||||||
"success",
|
"success",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if custom_domain.is_sl_subdomain:
|
||||||
|
return redirect(url_for("dashboard.subdomain_route"))
|
||||||
|
else:
|
||||||
return redirect(url_for("dashboard.custom_domain"))
|
return redirect(url_for("dashboard.custom_domain"))
|
||||||
|
|
||||||
nb_alias = Alias.filter_by(custom_domain_id=custom_domain.id).count()
|
nb_alias = Alias.filter_by(custom_domain_id=custom_domain.id).count()
|
||||||
|
|
Loading…
Add table
Reference in a new issue