Is it possible to remove some query parameters in outgoing links?
For example I have a link /some/page.xhtml?param=123&other=321
If I rewrite it to /some/page/123 it still generates links with the remaining query parameters. So, in this case /some/page/123?other=321.
Is it possible to remove that “other” parameter from generated links?
Hey there. Yes, it is certainly possible to remove parameters from links. This should probably be done in an outbound rewrite rule, but I don’t think there’s a shorthand way of doing it. You’ll have to do it in plain old Java, something like this:
Something like that. There are some Deprecated URLBuilder and QueryString builder types that may help you do this, but we will probably be replacing them with a betting API in the AddressBuilder API at some point in the future. This will work for now.