aboutsummaryrefslogtreecommitdiffstats
path: root/frontend-vanilla/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend-vanilla/src/main.ts')
-rw-r--r--frontend-vanilla/src/main.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend-vanilla/src/main.ts b/frontend-vanilla/src/main.ts
index 3dc0574..94f5727 100644
--- a/frontend-vanilla/src/main.ts
+++ b/frontend-vanilla/src/main.ts
@@ -128,7 +128,8 @@ export function attachLayoutListeners() {
} else if (navType === 'feed') {
e.preventDefault();
const feedId = link.getAttribute('data-value')!;
- if (store.activeFeedId === parseInt(feedId)) {
+ const currentRoute = router.getCurrentRoute();
+ if (store.activeFeedId === parseInt(feedId) && currentRoute.path !== '/settings') {
router.navigate('/', currentQuery);
} else {
router.navigate(`/feed/${feedId}`, currentQuery);