Skip to content

Commit

Permalink
fix: respect landingpage settings (use settings/server store, not loc…
Browse files Browse the repository at this point in the history
…alStore)
  • Loading branch information
ErikBjare committed Jan 7, 2024
1 parent 845b12f commit 9896601
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/route.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Vue from 'vue';
import VueRouter from 'vue-router';

import { useSettingsStore } from '@/store/settings';

const Home = () => import('./views/Home.vue');

// Activity views for desktop
Expand Down Expand Up @@ -30,7 +32,8 @@ const router = new VueRouter({
{
path: '/',
redirect: _to => {
return localStorage.landingpage || '/home';
const settings = useSettingsStore();
return settings.landingpage || '/home';
},
},
{ path: '/home', component: Home },
Expand Down

0 comments on commit 9896601

Please sign in to comment.