I have a site which has an issue causing an annoying URL issue. On the page numbers found on a page, if you follow one it will visit ?page=2
, this is fine.
If you then follow any subsequent links, rather than replacing the ?page=2
, it will append a new one. For example: ?page=2&page=3
. For various reasons, I need this to be ?page=3
and to remove the extroneous parameter from the beginning.
Sadly fixing this in code is not possible at this time and I wonder if anyone has ever done something similar through an NGINX rewrite.