From 814696e9c10425c115d28be804602f06ec862338 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 29 Sep 2023 14:34:01 +0200 Subject: [PATCH] portal: redirect to $host/yunohost/admin by default (cf recent commit in ssowat) --- src/domain.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/domain.py b/src/domain.py index 273fa9e6d..a5a68ca0f 100644 --- a/src/domain.py +++ b/src/domain.py @@ -117,6 +117,10 @@ def _get_domain_portal_dict(): out[domain] = f'{parent or domain}/yunohost/sso' + # By default, redirect to $host/yunohost/admin for domains not listed in the dict + # maybe in the future, we can allow to tweak this + out["default"] = "/yunohost/admin" + return dict(out)