From 80785d2a258d9f790d033080832ab5d29ffd7f23 Mon Sep 17 00:00:00 2001 From: "magic.chen" Date: Tue, 5 Dec 2023 16:44:55 +0800 Subject: [PATCH] fix: docs redirect problem fix (#892) --- docs/static/redirect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/static/redirect.js b/docs/static/redirect.js index 39e157c59..0d311f41b 100644 --- a/docs/static/redirect.js +++ b/docs/static/redirect.js @@ -1,5 +1,5 @@ window.onload = function() { - if (window.location.pathname !== '/docs/overview') { + if (window.location.pathname == '/' || window.location.pathname == "") { window.location.href = '/docs/overview'; } }; \ No newline at end of file