From b49afbc4ff3c363ff33dbcbb0383df6792af6405 Mon Sep 17 00:00:00 2001 From: nbenedek Date: Sun, 5 Feb 2023 01:12:57 +0100 Subject: [PATCH] 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 Reviewed-by: Sunil Mohan Adapa --- .../data/etc/apache2/conf-available/email-freedombox.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plinth/modules/email/data/etc/apache2/conf-available/email-freedombox.conf b/plinth/modules/email/data/etc/apache2/conf-available/email-freedombox.conf index 9f99790de..f402a3cb3 100644 --- a/plinth/modules/email/data/etc/apache2/conf-available/email-freedombox.conf +++ b/plinth/modules/email/data/etc/apache2/conf-available/email-freedombox.conf @@ -28,3 +28,9 @@ RewriteRule ^ /plinth/apps/email/config.xml [PT] + +# 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. + + ErrorDocument 404 /plinth/apps/roundcube/ +