7 lines
191 B
TypeScript
7 lines
191 B
TypeScript
const reloadRoutes = new Set(['/invite'])
|
|
|
|
export default defineNuxtRouteMiddleware((to) => {
|
|
if (process.client && reloadRoutes.has(to.fullPath))
|
|
window.location.pathname = to.path
|
|
})
|