FlowRouter query parameter parsing is wrong


#1

when i tried to parse this url

http://localhost:3000/torrent?previous=%2Ftorrent%3Fprevious%3D%2Fuser%26route%3D&route=torrent-item

expecting route = 'torrent-item' String but FlowRouter router value is ["", "torrent-item"] Array

online - https://ts-vcompile.herokuapp.com/user#!/torrent?previous=%2Ftorrent%3Fprevious%3D%2Fuser%26route%3D&route=torrent-item

repo - https://github.com/HedCET/TorrentSearch


#2

It looks like FlowRouter is getting confused because your URL encoded previous parameter includes a route parameter. You might want to try double URL encoding (then decoding) your previous parameter to help FlowRouter out, or look into another way of handling this.

There are some open URL encoding issues with FlowRouter, like this one: