1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-07-03 13:06:47 +01:00

fix: allow sharing invite links within elk

This commit is contained in:
Daniel Roe 2022-12-21 13:38:39 +00:00
parent 0320d5ab44
commit 92475fdbf4
No known key found for this signature in database
GPG key ID: 22D5008E4F5D9B55

View 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
})