1
0

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