Get rid of the "srid"

Hi.

We use XWiki with Azure AD integration via OpenIDConnect. If we enter the wiki very often there is a query with “?srid=xyz”. I would think, this is something like a session id. If people share a link they copy & paste the url from the address bar including “srid”. This isn’t nice. Is there a possibility to get rid of the “srid”?

Regards, Simpel

I guess now I know what that srid is: xwiki-platform/SavedRequestManager.java at 73b07f8352d1716b9945b577d6e4a3334f058a77 · xwiki/xwiki-platform · GitHub - the SavedRequestID. XWiki needs the srid to save the request parameters of a user without a valid session via the login.

But it would be nice if the srid would be removed after login and reaching the page including request parameters.

Currently we try this: an article with a jsx with this code:

history.replaceState("", "", window.location.href.replace(new RegExp("\\?srid=[^&\\n]+$|srid=[^&#]+&"), ""));

If someone knows a better way I would like to hear about.