aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkshay <[email protected]>2024-11-05 22:46:16 +0000
committerAkshay <[email protected]>2024-11-05 22:46:16 +0000
commitc6f6ff78972b2f63f624d5b5253ce82760365fac (patch)
treedd8dfc6cc273aa146fd511990d90b857b3ddfb41 /src
parent47b4fd3b1233353e56c99c0b9a5a8633d8bc2617 (diff)
fix bug with empty page redir
Diffstat (limited to 'src')
-rw-r--r--src/views/home.pug4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/views/home.pug b/src/views/home.pug
index 87f6e0a..ebe31de 100644
--- a/src/views/home.pug
+++ b/src/views/home.pug
@@ -4,9 +4,9 @@ html
4 +subMgmt() 4 +subMgmt()
5 script(async). 5 script(async).
6 window.addEventListener("load", () => { 6 window.addEventListener("load", () => {
7 const url = `/r/${getSubs().join('+')}`; 7 const url = getSubs().join('+');
8 if (url) { 8 if (url) {
9 window.location.href = url; 9 window.location.href = '/r/${url}';
10 } else { 10 } else {
11 window.location.href = '/r/all'; 11 window.location.href = '/r/all';
12 } 12 }