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.
Do you play Magic?
Get TopDecked MTG, the #1 Magic App, built by players, for players. Free to use, forever.