Skip to content

Commit

Permalink
Reload route if full path changes
Browse files Browse the repository at this point in the history
Problem was in search-detail when clicking Previous version. This
called a router-link to the same component but the id was only in the
path not in the component. So the component was not reloaded only the
address in the browser changed.
  • Loading branch information
joschrew committed Jan 18, 2024
1 parent b4015be commit 87cc33c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
<div class="h-14" />
<Main v-if="isHeaderVisible"></Main>
<div class="flex flex-1 flex-col">
<RouterView />
<Router-View v-slot="{ Component, route }">
<component :is="Component" :key="$route.fullPath" />
</Router-View>
</div>
<Footer />
</div>
Expand Down

0 comments on commit 87cc33c

Please sign in to comment.