email: Redirect to the app page if roundcube isn't installed

If Roundcube is not yet installed and the user clicks on 'Launch web client',
redirect to the installation page instead of Apache's Not Found page.

Signed-off-by: nbenedek <contact@nbenedek.me>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
nbenedek 2023-02-05 01:12:57 +01:00 committed by Sunil Mohan Adapa
parent a179dd302e
commit b49afbc4ff
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -28,3 +28,9 @@
RewriteRule ^ /plinth/apps/email/config.xml [PT]
</IfModule>
</Location>
# If Roundcube is not yet installed and the user clicks on 'Launch web client',
# redirect to the installation page instead of Apache's Not Found page.
<Location "/roundcube/">
ErrorDocument 404 /plinth/apps/roundcube/
</Location>