Skip to content

Commit fd0a3aa

Browse files
teemingcdummdidumm
andauthored
Update packages/kit/src/runtime/client/client.js
Co-authored-by: Simon H <[email protected]>
1 parent fb5a4fb commit fd0a3aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/kit/src/runtime/client/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2093,7 +2093,7 @@ function _start_router() {
20932093
const same_pathname = nonhash === strip_hash(location);
20942094

20952095
// Ignore the following but fire beforeNavigate
2096-
if (external || (options.reload && !same_pathname && !hash)) {
2096+
if (external || (options.reload && (!same_pathname || !hash))) {
20972097
if (_before_navigate({ url, type: 'link' })) {
20982098
// set `navigating` to `true` to prevent `beforeNavigate` callbacks
20992099
// being called when the page unloads

0 commit comments

Comments
 (0)