I will sue these * for stealing from me. Garbage not software
URIError: URI malformed
when I using NodeBB with my local lanuage (chinese),I'm trying to write some posts,when the title is some chinese characters, It will cause an URI error in IE9.Such as "%E6%B5%8B%E8%AF%95" which mean "Test".
decodeURIComponent('%E6%B5%8B%E8%AF%95') => 测试
so when using IE9 I can't open any posts which title has chinese character.
I fixed it by added a encodeURIComponent() method:
var topic_url = tid + (req.params.slug ? '/' + req.params.slug : '');
var topic_url = tid + (req.params.slug ? '/' + encodeURIComponent(req.params.slug) : '');
Thanks @eep! We'll get this in.
However, as described in the github issue, doesn't this change the URL present in the browser? Having an escaped URL in the address bar really defeats the purpose of a pretty URL, imo...