Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
5.1.0.5
-
None
Description
When a link is rewritten that contains parameters, the parameter information is not passed along to the newly created link. This creates a problem, for example, when the activation context "t:ac" is specified as a parameter in event links.
Link rewriteIfNeeded(Link link, URLRewriteContext context)
{
Link newLink = null;
SimpleRequestWrapper fakeRequest = new SimpleRequestWrapper(request, link.toAbsoluteURI());
Request rewritten = urlRewriter.processLink(fakeRequest,context);
// if the original request is equal to the rewritten one, no
// rewriting is needed
if (fakeRequest != rewritten)
return newLink;
}
Attachments
Attachments
Issue Links
- is duplicated by
-
TAP5-1194 ComponentEventLinkEncoder omits original Link's parameters when URL Rewriting has been applied.
- Closed