Search code examples
springangularspring-data-restangular2-router3

% symbol encoded to %25 in URL every reload


İ use Spring-Data-Rest and Angular 2

% URL encode code %25 (http://www.w3schools.com/tags/ref_urlencode.asp)

Firstly;

http://localhost:4200/members/http%3A%2F%2Flocalhost%3A8080%2FErPApI%2Forganizations%2F1/detail

when navigate this URL and reload page again or copy paste new tab link

% encode again %25. İts doing every reload.

http://localhost:4200/members/http%253A%252F%252Flocalhost%253A8080%252FErPApI%252Forganizations%252F1/detail

So i lost member id. How can i block encode % again?


Solution

  • I used the following method when I get the link.

     decodeURIComponent()