delete pid from query object

This commit is contained in:
Moriz Wahl 2021-10-06 15:01:02 +02:00
parent 6665c17f0b
commit 20466d311c

View File

@ -53,7 +53,7 @@ router.beforeEach((to, from, next) => {
const publisherId = to.query.pid
if (publisherId) {
store.commit('publisherId', publisherId)
to.query.pid = undefined
delete to.query.pid
}
if (to.meta.requiresAuth && !store.state.token) {
next({ path: '/login' })