[VANITY-22] Forwards doesn't work correctly Created: 19/Sep/17  Updated: 27/Mar/18  Resolved: 27/Mar/18

Status: Resolved
Project: Vanity URL app
Component/s: None
Affects Version/s: 1.4.2
Fix Version/s: 1.4.3, 1.5.0

Type: Bug Priority: Critical
Reporter: Frank Sommer Assignee: Frank Sommer
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Most times a vanity url with the option forward doesn't work. It seems that the same url creation is used like for redirects. But in case of forwards you have to take the internal handles instead of generated urls.



 Comments   
Comment by Jean-Charles Robert [ 19/Sep/17 ]

In case of a forward, the resource to be forwarded by the request should be send as a relative path.

See the documentation of ServletRequest#getRequestDispatcher() that Magnolia is using to dispatch the Request (info.magnolia.cms.utilRequestDispatchUtil)
https://docs.oracle.com/cd/E17802_01/products/products/servlet/2.5/docs/servlet-2_5-mr2/javax/servlet/ServletRequest.html#getRequestDispatcher(java.lang.String)

Generated at Mon Feb 12 11:10:09 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.