Skip to content

resolves #99: decode anchor hash string to support Unicode characters

YAN Wenkun requested to merge yanwk/antora-ui-default-zh:merge-request into master

As problem described in #99 (closed) , when browser recieved a request (e.g. a href="#title-in-chinese-中文"), the hash/id is actually encoded, therefor the browser couldn't find the hash/id, and would behave in default way (ignoring what we want it to do in JS).

While the rootcause of this problem was hard to find out, the solution is simple: decodeURIComponent(), and it works!

Huge thanks to @konrumi, cheers!

Merge request reports