File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Changes can be:
99## Unreleased
1010
1111* 💫 Detect and throw on infinte loops during presentation
12+ * 🐜 Fix relative links by removing trailing slash, fixes [ #783 ] ( https://github.com/nextjournal/clerk/issues/783 )
1213
1314## 0.18.1158 (2025-11-17)
1415
Original file line number Diff line number Diff line change @@ -63,4 +63,6 @@ The same functionality is available in the SCI context when building render func
6363Links should work inside markdown as well.
6464
6565* [ HTML] ( ../notebooks/viewers/html ) (relative link)
66+ * [ HTML] ( ./viewers/html ) (relative link)
67+ * [ HTML] ( viewers/html ) (relative link)
6668* [ HTML] ( clerk/doc-url,"notebooks/viewers/html" ) (doc url, currently not functional)
Original file line number Diff line number Diff line change 861861 (let [path (.-pathname url)
862862 edn-path (str path (when (str/ends-with? path " /" ) " index" ) " .edn" )]
863863 (.pushState js/history #js {:edn_path edn-path} " "
864- (str (cond-> path
865- (not (str/ends-with? path " /" ))
866- (str " /" )) (.-hash url))) ; ; a trailing slash is needed to make relative paths work
864+ (str path (.-hash url)))
867865 (fetch+set-state edn-path)))))
868866
869867(defn load->fetch [{:keys [current-path]} _e]
You can’t perform that action at this time.
0 commit comments