javascript - AngularJS Parameter in redirectTo escaped "?" breaks route -


i redirect error page parameter. gets encoded /error%3ftype=404.
this breaks routing. route never active. typing or location works charm.

otherwise( {     redirectto: "/error?type=404" }); 

you shouldn't manipulate ? in url through routing. rather, can use $location service in manner:

$location.path('/error').search('type', 404) 

refer question more details: how pass "question mark" in url javascript


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -