2017-02-13 204 views
3

İ使用Spring-DATA-休息和角2%符号编码为%25中每URL重装

%URL编码代码%25(http://www.w3schools.com/tags/ref_urlencode.asp

首先;

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

当浏览这个URL并重新加载页面或复制粘贴新标签链接

%编码再次%25。 İts每次重新加载。

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

让我失去的会员ID。我怎样才能再次阻止编码%?

回答

1

我在获取链接时使用了以下方法。

decodeURIComponent()