Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jul 21, 2022
1 parent ec6c39f commit 5cd877b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/kit/src/runtime/client/client.js
Expand Up @@ -238,8 +238,9 @@ export function create_client({ target, session, base, trailing_slash }) {
return false; // unnecessary, but TypeScript prefers it this way
}

// use the normalized URL from here on out
url = /** @type {import('./types').NavigationIntent} */ (intent).url;
// if this is an internal navigation intent, use the normalized
// URL for the rest of the function
url = intent?.url || url;

// abort if user navigated during update
if (token !== current_token) return false;
Expand Down

0 comments on commit 5cd877b

Please sign in to comment.