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 })}`);