How To Avoid Url Decoding Of $location.url? May 31, 2023 Post a Comment 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 tSolution 1: Use vanilla javascript?document.location = "http://www.google.com/test%fdsfsd";Copywill maintain the '%' sign.. Share Post a Comment for "How To Avoid Url Decoding Of $location.url?"
Post a Comment for "How To Avoid Url Decoding Of $location.url?"