Relative Content

Tag Archive for nuxt.jsnuxtjs3nuxt3

navigateTo not working in plugin – nuxt 3

The problem in short: navigateTo works in defineNuxtRouteMiddleware but it does not work in defineNuxtPlugin. I do not want to run this code on every page only in or entering the site

disable global middleware from some pages – nuxt 3

When you set the middleware as global, and let’s say myMid.global.ts, there are some pages on which I do not want this middleware to work. I searched and found a way using route name “to.name“, and I want a better way. For example, on the page where I do not want it to work, I put, for example: