Skip to content

Commit

Permalink
Fix corrupted router state preventing navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
MWedl committed Nov 20, 2024
1 parent ae55204 commit 34a3785
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/frontend/src/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<v-list-item
v-for="pluginMenuEntry, idx in pluginMenuEntries"
:key="idx"
:to="pluginMenuEntry.to"
:to="router.resolve(pluginMenuEntry.to).href"
:title="pluginMenuEntry.title"
:prepend-icon="pluginMenuEntry.icon || 'mdi-puzzle'"
v-bind="pluginMenuEntry.attrs"
Expand Down Expand Up @@ -118,6 +118,7 @@ const auth = useAuth();
const apiSettings = useApiSettings();
const pluginStore = usePluginStore();
const route = useRoute();
const router = useRouter();
const display = useDisplay();
const pluginMenuEntries = computed(() => pluginStore.menuEntriesForScope(PluginRouteScope.MAIN));
Expand Down
3 changes: 2 additions & 1 deletion packages/frontend/src/pages/projects/[projectId].vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<v-list-item
v-for="pluginMenuEntry, idx in pluginMenuEntries"
:key="idx"
:to="pluginMenuEntry.to"
:to="router.resolve(pluginMenuEntry.to).href"
:title="pluginMenuEntry.title"
:prepend-icon="pluginMenuEntry.icon || 'mdi-puzzle'"
v-bind="pluginMenuEntry.attrs"
Expand All @@ -47,6 +47,7 @@
import { projectTitleTemplate } from "#imports";
const route = useRoute();
const router = useRouter();
const pluginStore = usePluginStore();
const projectStore = useProjectStore();
const projectTypeStore = useProjectTypeStore();
Expand Down

0 comments on commit 34a3785

Please sign in to comment.