We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bc903b commit 3b9d375Copy full SHA for 3b9d375
1 file changed
src/pages/notes.astro
@@ -11,3 +11,17 @@ export const prerender = false;
11
<NotesIsland server:load />
12
</main>
13
</Layout>
14
+
15
+<script>
16
+ const checkAndScroll = () => {
17
+ if (window.location.hash) {
18
+ const el = document.querySelector(window.location.hash);
19
+ if (el) {
20
+ el.scrollIntoView({ behavior: "instant" });
21
+ } else {
22
+ requestAnimationFrame(checkAndScroll);
23
+ }
24
25
+ };
26
+ checkAndScroll();
27
+</script>
0 commit comments