From c6f6ff78972b2f63f624d5b5253ce82760365fac Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 5 Nov 2024 22:46:16 +0000 Subject: fix bug with empty page redir --- src/views/home.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 +subMgmt() script(async). window.addEventListener("load", () => { - const url = `/r/${getSubs().join('+')}`; + const url = getSubs().join('+'); if (url) { - window.location.href = url; + window.location.href = '/r/${url}'; } else { window.location.href = '/r/all'; } -- cgit v1.2.3