Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

can.route.url creates invalid url

$
0
0
When building a url using
  1. can.route.url( {controller: 'user', action: 'login', returnUrl: returnPage}, false )
can force-encodes the whole url. Whereas one would expect the url to be:
  1. user/login&returnUrl=encodedUrl
instead you get an invalid url:
  1. &user%2Flogin=&returnUrl=encodedUrl

Can this be overcome somehow?

Viewing all articles
Browse latest Browse all 3491

Trending Articles