How To Avoid Url Decoding Of $location.url?
My angular $location I have an encoded URL such as var slug = 'test-test/7%2F8-test';. I am using $location.url(slug) to redirect but unfortunately it gets decoded when it comes t
Solution 1:
Use vanilla javascript?
document.location = "http://www.google.com/test%fdsfsd";
will maintain the '%'
sign..
Post a Comment for "How To Avoid Url Decoding Of $location.url?"