Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit bcf6ac3

Browse files
authored
Merge pull request #692 from sveltejs/gh-331
leave anchor scrolling on initial load to browser
2 parents b8d99aa + b59d900 commit bcf6ac3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/src/app/start/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default function start(opts: {
4040
if (initial_data.error) return handle_error(url);
4141

4242
const target = select_target(url);
43-
if (target) return navigate(target, uid, false, hash);
43+
if (target) return navigate(target, uid, true, hash);
4444
});
4545
}
4646

0 commit comments

Comments
 (0)