diff --git a/ui/src/router/chat/index.ts b/ui/src/router/chat/index.ts index 6d443d6fc..67f097725 100644 --- a/ui/src/router/chat/index.ts +++ b/ui/src/router/chat/index.ts @@ -75,11 +75,12 @@ router.beforeEach( return } if (p_token) { - next({ ...to, query: to.query }) + const q = to.query + delete q.token + next({ ...to, query: q }) } else { next() } - return } }