From 3e58a98765020199cc6c0d11cbea7d51061a9d13 Mon Sep 17 00:00:00 2001 From: alext Date: Tue, 23 Jan 2018 09:51:56 +0100 Subject: [PATCH] Added message in installation page when base url contains a trailing slash. --- src/assets/js/installation.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/assets/js/installation.js b/src/assets/js/installation.js index 6a21be7b..9ec2c8d7 100644 --- a/src/assets/js/installation.js +++ b/src/assets/js/installation.js @@ -162,4 +162,13 @@ $(document).ready(function() { return company; } + + // Validate the base URL setting (must not contain any trailing slash). + if (GlobalVariables.baseUrl.slice(-1) === '/') { + GeneralFunctions.displayMessageBox('Misconfiguration Detected', 'Please remove any trailing slashes from your ' + + 'BASE_URL setting of the root config.php file and try again.' ); + $('#install') + .prop('disabled', true) + .fadeTo('0.4'); + } });