Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.5.5
-
None
Description
Code like:
Url baseUrl = Url.parse("one/two/three");
baseUrl.setProtocol("http");
baseUrl.setHost("www.example.com");
baseUrl.setPort(8888);
UrlRenderer renderer = new UrlRenderer(new MockWebRequest(baseUrl));
renderer.setBaseUrl(baseUrl); // this is needed because MockWebRequest cuts data
String fullUrl = renderer.renderFullUrl(Url.parse("../four"));
Produces url: http://www.example.com/../four while it has to be http://www.example.com/one/four
Attachments
Issue Links
- breaks
-
WICKET-4561 Wicket 1.5.6 duplicates segments in absolute URLs
- Resolved