From a53d40717e578974901997d38dc4aa0142594a22 Mon Sep 17 00:00:00 2001 From: underpostnet Date: Tue, 5 Nov 2024 23:03:15 +0000 Subject: [PATCH] Update github repo package --- src/client/ssr/pages/offline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/ssr/pages/offline.js b/src/client/ssr/pages/offline.js index 9fbecaa..a50ccdd 100644 --- a/src/client/ssr/pages/offline.js +++ b/src/client/ssr/pages/offline.js @@ -10,7 +10,7 @@ window.onload = () => Worker.instance({ render: async () => { window.ononline = async () => { - location.href = location.pathname; + location.href = location.pathname.split('/')[1] ? `/${location.pathname.split('/')[1].split('.')[0]}` : '/'; }; window.onoffline = async () => { htmls(`.page-render`, html`${await Alert.noInternet({ Translate })}`);