From b3ca5cdc6f346f3cd41716bca488a5430d23f90f Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 11 Jul 2021 19:20:18 +0100 Subject: [PATCH] Doc: Redirect to Install section when trying to download Linux app --- Assets/WebsiteAssets/js/script.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets/WebsiteAssets/js/script.js b/Assets/WebsiteAssets/js/script.js index 7d957a061..e74c39bae 100644 --- a/Assets/WebsiteAssets/js/script.js +++ b/Assets/WebsiteAssets/js/script.js @@ -64,8 +64,14 @@ function setupDownloadPage() { } else { const os = getOs(); if (!os || !downloadLinks[os]) { + // If we don't know, display the section to manually download the app $('.page-download .get-it-desktop').show(); + } else if (os === 'linux') { + // If it's Linux, the user should probably install it using the + // install script so we redirect to the install section + window.location = 'https://joplinapp.org/help/#desktop-applications'; } else { + // Otherwise, start the download window.location = downloadLinks[os]; } }