Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
1.2.5
-
None
Description
MultiSiteFilter sets the site with a call to aggregationState.setSite(site);
After a forward (f.e. by a 404 virtualURIMapping) it uses the same site set before ( Site site = aggregationState.getSite(); ).
If the forward was to another site (of the same domain), the new site is not correctly set in the AggregationSate, leading to several issues (f.e. URIMapping issues)
This is a big problem, if 2 sites use the same domain, but one has a URIPrefix
f.e.:
www.domain.com
www.domain.com/en
a 404 forward to an error.html will not work in this case, because Magnolia will look for node /en/error in the wrong site (instead of /error in the correct one).
Checklists
Acceptance criteria