mirror of
https://github.com/simple-login/app.git
synced 2025-09-30 18:37:30 +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,7 +291,10 @@ def domain_detail(custom_domain_id):
|
|||
"success",
|
||||
)
|
||||
|
||||
return redirect(url_for("dashboard.custom_domain"))
|
||||
if custom_domain.is_sl_subdomain:
|
||||
return redirect(url_for("dashboard.subdomain_route"))
|
||||
else:
|
||||
return redirect(url_for("dashboard.custom_domain"))
|
||||
|
||||
nb_alias = Alias.filter_by(custom_domain_id=custom_domain.id).count()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue