URIError: URI malformed
-
platform: win7
browser: IE9when 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.
-
Thanks @eep! We'll get this in.
URIError: URI malformed · Issue #1146 · NodeBB/NodeBB
http://community.nodebb.org/topic/948/urierror-uri-malformed Fix I fixed it by added a encodeURIComponent() method: var topic_url = tid + (req.params.slug ? '/' + req.params.slug : ''); to var topic_url = tid + (req.params.slug ? '/' + e...
GitHub (github.com)
-
@eep The code in question is contained in a part of NodeBB that is currently being heavily refactored. I'll ask @psychobunny if this can be merged into his changes.
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...