angularjs $location encodes url

100 views Asked by At

I am using $location service to set query string in the url like this one :

$location.search('prefix','s/5469b2f5b4292d22522e84e0/ms.files/images/');

But it is showing url like this :

?prefix=s%2F5469b2f5b4292d22522e84e0%2Fms.files%2Fimages%2F

I don't want to encode it and need like this one

?prefix=s/5469b2f5b4292d22522e84e0/ms.files/images/
0

There are 0 answers