We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8ba62d commit 56e7d8dCopy full SHA for 56e7d8d
src/routes/blog/[...slug].svelte
@@ -13,6 +13,13 @@
13
</script>
14
15
<script>
16
+ // TODO remove workaround for this issue https://github.com/sveltejs/sapper/issues/904
17
+ import { onMount } from 'svelte'
18
+ onMount(async () => {
19
+ ;[...document.querySelectorAll('a[href^="#"]')].map(
20
+ x => (x.href = document.location + new URL(x.href).hash)
21
+ )
22
+ })
23
import {getIsoDateStr} from '../../services/dates';
24
export let post;
25
0 commit comments