vuejs / router

🚦 The official router for Vue.js
https://router.vuejs.org/
MIT License
3.77k stars 1.16k forks source link

In History mode sending more than one parameters breaks page refresh #2079

Closed Dagge11 closed 7 months ago

Dagge11 commented 7 months ago

Reproduction

Vue 3 / Vue Router 4 / Nodejs

Steps to reproduce the bug

When I am in history mode in Vue3/Router 4 and try to send more than one parameter via router link, after I try to refresh a new page it shows random JSON data contained on this page instead of an actual page. When sending one parameter only, refreshing the page works properly and displays desired page.

Expected behavior

History mode should refresh page properly by accepting more than one parameter sent via router link

Actual behavior

Wrong

Additional information

No response

posva commented 7 months ago

Duplicate of https://github.com/vuejs/router/issues/1928 and others. Likely related to this https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#important-note.

Please don't open issues without searching first or without a reproduction.