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 }}