mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-14 02:34:22 +02:00
Catch webmail-url empty but webmail configured and force to default
Quite some users managed to delete the contents of the webmail-url field in setup, which forces front into a restart loop. Catch the case where a webmail service is configured, but url is empty — and force to default /webmail. closes #856
This commit is contained in:
parent
77ec049edc
commit
d9d6f514aa
@ -116,7 +116,11 @@ WEBROOT_REDIRECT=/webmail
|
||||
WEB_ADMIN={{ admin_path }}
|
||||
|
||||
# Path to the webmail if enabled
|
||||
{% if webmail_type != 'none' and webmail_path == '' %}
|
||||
WEB_WEBMAIL=/webmail
|
||||
{% else %}
|
||||
WEB_WEBMAIL={{ webmail_path }}
|
||||
{% endif %}
|
||||
|
||||
# Website name
|
||||
SITENAME={{ site_name }}
|
||||
|
Loading…
Reference in New Issue
Block a user