Reply To: Redirect to same page with changed viewParam

Splash Forums Rewrite Users Redirect to same page with changed viewParam Reply To: Redirect to same page with changed viewParam

#26671

Hmmmmm. It’s difficult to tell what is going wrong here. There are many things interacting here. The JSF implementation, Omnifaces, Rewrite and perhaps others. IMO it is correct that Rewrite returns the URL with the query parameter from getActionURL() as the parameter was present in the incoming request. That is correct in regard to the JSF spec. I don’t fully understand why MultiViewHandler.getRedirectURL() is calling getActionURL(). This doesn’t make sense to me. But anyway, the JSF implementation should handle includeViewParams correctly. And if the JSF implementation uses getActionURL() for some reason, it should also remove view parameters if required.