I would like to add the lng parameter to all the links. How can I do that without using
<f:param name="lng" ....
in every link? The value of lng is in a session scoped bean.
Maybe a Filter can do that, but in this case how can I access the value without injection?
So just looking to the URLRewrite filter i found the solution.
I code a filter that override the response, and the encodeURL method.
The doFilter method, that detect if there is a lng param on the request and if not it gets the default lng value from the bean in the
getDefaultLngmethod:An the
LngResponse#encodeURLthat just adds the param.Finally it works, so our SEO department has their unique URI’s.