aaronlord / laroute

Generate Laravel route URLs from JavaScript.
MIT License
794 stars 139 forks source link

Parameters not escaped #78

Open nanaya opened 6 years ago

nanaya commented 6 years ago

Is it intentional?

> laroute.route('search', {q: 'this & that'})
"/home/search?q=this & that"

The & that is not part of q anymore because & is query string separator. It should be replaced with its percent encoding.