From ae551f0184edf8f2b365c58a7e298bffa3ae22f0 Mon Sep 17 00:00:00 2001 From: Myeongjin Date: Thu, 17 Apr 2025 01:29:16 +0900 Subject: [PATCH] fix download redirects for Android users (#1055) --- pages/404.html | 2 ++ pages/download.html | 6 ++++-- pages/download/3.x.html | 10 ++++++---- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/pages/404.html b/pages/404.html index 944d0ccb19..87f8003663 100644 --- a/pages/404.html +++ b/pages/404.html @@ -113,6 +113,8 @@ description: "The requested resource is not available on the server." let link_platform = 'windows'; if (navigator.platform.indexOf('Mac') !== -1) { link_platform = 'macos'; + } else if (navigator.userAgent.indexOf('Android') !== -1) { + link_platform = 'android'; } else if (navigator.platform.indexOf('Linux') !== -1) { link_platform = 'linux'; } diff --git a/pages/download.html b/pages/download.html index d3fe682b92..c4939faf9b 100644 --- a/pages/download.html +++ b/pages/download.html @@ -17,9 +17,11 @@ redirect_from: