NuxtN
Nuxt17mo ago
Ulrich

Multiple Alias and Route navigation in Nuxt 3

Hello,

I have a /search page that help user to find items base on some filter. I also have three pages /location, /meuble and /vente , same HTML structure as /search but with just some hidden things depending of the page.

I used alias in /search for this three pages , but when i am on one of this pages and i want to go on another, nuxt-link doesn't trigger navigation saying i'm already on that page.

definePageMeta({
layout: 'with-banner',
alias: ['/location','/vente','/meuble'],
key: route => route.fullPath
})


How to force navigation when navigating between these pages ? 🤔
Was this page helpful?