Skip to content

Commit

Permalink
fix: Always decode
Browse files Browse the repository at this point in the history
  • Loading branch information
toby044 committed Apr 15, 2024
1 parent 2958f0f commit c94a395
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/runtime/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,11 @@ export default defineNuxtPlugin((nuxtApp) => {
* host handling end
*/

config.route = config.route.includes('%') ? decodeURI(config.route): config.route;

const urlSearchParams = new URLSearchParams({
appHost,
navContext: process.server,
navLevels: 2,
url: config.route,
url: decodeURI(config.route),
...config.params
});

Expand Down

0 comments on commit c94a395

Please sign in to comment.