From 52948fa529e551ef75b67bcce97f8baf6ba58bc8 Mon Sep 17 00:00:00 2001 From: Ahmed H Date: Sat, 2 Mar 2019 14:25:18 +0300 Subject: [PATCH] Correct hardcoded WEBROOT_REDIRECT We should not assume that the user has chosen the word "webmail" for his webmail path --- setup/flavors/compose/mailu.env | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup/flavors/compose/mailu.env b/setup/flavors/compose/mailu.env index bdd27853..8971b470 100644 --- a/setup/flavors/compose/mailu.env +++ b/setup/flavors/compose/mailu.env @@ -113,7 +113,11 @@ COMPRESSION_LEVEL={{ compression_level }} ################################### # Path to redirect / to -WEBROOT_REDIRECT=/webmail +{% if webmail_type != 'none' and webmail_path == '' %} +WEBROOT_REDIRECT=/ +{% else %} +WEBROOT_REDIRECT={{ webmail_path }} +{% endif %} # Path to the admin interface if enabled WEB_ADMIN={{ admin_path }}