Skip to content

Commit

Permalink
fix an infinite redirect to home route (#1709)
Browse files Browse the repository at this point in the history
Co-authored-by: FREDERICK <[email protected]>
  • Loading branch information
nuckle and MrBurrBurr authored Jan 17, 2025
1 parent ef4a7b6 commit 9c85d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/router/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default [
if (botsDetected) {
storage.set('setup-complete', true);
let defaultView = store.getters['settings/defaultView'];
if (defaultView === '_last-visited-page') defaultView = storage.get('last-visited-page', { name: 'bots' });
if (defaultView === '_last-visited-page' || defaultView === 'home') defaultView = storage.get('last-visited-page', { name: 'bots' });
const page = (typeof defaultView === 'string') ? { name: defaultView } : defaultView;
return next(page);
}
Expand Down

0 comments on commit 9c85d24

Please sign in to comment.