I seek some help from the Struts people.
We have an action that redirects to various external and full address URLs, based on a small algorithm. Depending on input the proper URL is chosen. It is implemented as shown in this post: https://stackoverflow.com/a/179251/3541538
It is working fine so far, but recently we hit a case where one of the redirection URLs contains multiple # chars. It looks like a unique case and probably such URLs are not even valid(?). The result is that Struts treat the URL as relative (I assume that it fails to validate it as a proper URL) and the final destination is a concatenation of Struts server address and remote URL, instead of just the last.
Any idea how can I work around this problem? Can I somehow disable validation or intercept the process? Ideally for that action only? Please don't waste any time on why that URL has multiple # chars, that's not going to change.
We use Struts 2.3.24.