Fork me on GitHub
#clerk
<
2024-07-10
>
teodorlu10:07:50

Hi 🙂 I’ve hosted a Clerk notebook on my own site—exported to index.html and index.edn with nextjournal.clerk/build!. In my notebook, I link up with ... After I navigate to the page “up”, the page “up” fails to load. A browser refresh loads the page (see attached video). If I change the link target from .. to an absolute path (`https://play.teod.eu`), I don’t get any problems. Any ideas on what’s happening here? I’d prefer to use relative links if I can.

1
Andrea13:07:30

I can’t be sure, but we probably intercept that anchor click, try making one of these conditions true 🙂 https://github.com/nextjournal/clerk/blob/main/src/nextjournal/clerk/render.cljs#L720-L728

👍 1
Andrea13:07:24

probably with [:a {:data-ignore-anchor-click true}]

👍 1
teodorlu13:07:49

Great, thanks! I’ll give it a shot.

teodorlu13:07:21

:data-ignore-anchor-click true did the trick. Thanks again!

🙌 1