Hello Magnolians!
Question time:
I have a virtual uri mapping set in this way:
--- --- ---
class : info.magnolia.cms.beans.config.RegexpVirtualURIMapping
fromUri : /landingPage(/.*)$
toUri : forward:/path/to/landingPage.html?pathWas=$1
--- --- ---
The scenario is that: I would like to pass the parameter "pathWas" to
landingPage only if the page is called by the virtual uri.
In this configuration it doesn't work, e.g., if I call
www.mysite.com/landingPage/this/is/a/fake/path
=>
- request.getParameter("pathWas") is null
- url in the browser is (as expected)
But if I change this:
toUri : forward:/path/to/landingPage.html?pathWas=$1
in:
toUri : redirect:/path/to/landingPage.html?pathWas=$1
everything works, but I see in the url the real path of the landing page.
E.g., if I call
www.mysite.com/landingPage/this/is/a/fake/path
=>
- request.getParameter("pathWas") is "this/is/a/fake/path".
- url in the browser is (again as expected)
www.mysite.com/path/to/landingPage.html?pathWas=/this/is/a/fake/path
Does anybody help me to know why?
The VirtualUriMappingFilter code seems to be OK.
Thanks *a lot* for any hint.
Matteo
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------