forked from Mirrors/elk
fix: allow sharing invite links within elk
This commit is contained in:
parent
0320d5ab44
commit
92475fdbf4
1 changed files with 6 additions and 0 deletions
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 a new issue