fix: allow sharing invite links within elk
This commit is contained in:
parent
0320d5ab44
commit
92475fdbf4
6
middleware/link.global.ts
Normal file
6
middleware/link.global.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
const reloadRoutes = new Set(['/invite'])
|
||||||
|
|
||||||
|
export default defineNuxtRouteMiddleware((to) => {
|
||||||
|
if (process.client && reloadRoutes.has(to.fullPath))
|
||||||
|
window.location.pathname = to.path
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user