bhauman / devcards

Devcards aims to provide a visual REPL experience for ClojureScript
1.53k stars 116 forks source link

Clicking on cards having titles that contains UTF8-characters takes you back to the table of content #146

Closed schpaa closed 2 years ago

schpaa commented 5 years ago

Using devcards in a non-english environment can be a little problematic.

If you click on a card defined like

(defcard-rg Øvelse 
   [:div "Clicking the header takes you back to the content table"])

This only happens to the card with the special characters, all other cards are unaffected.

(@bhauman suggested it could be a url-encoding issue)

schpaa commented 5 years ago

Could this be the one?

https://github.com/bhauman/devcards/blob/4f02973c75586ad3f9559c044cb98585764e5199/src/devcards/system.cljs#L96

(->> "Øvelse" js/goog.Uri.parse .getPath)