Referrer not set on login.html

Hi,

I am trying to implement https://github.com/JetBrains/teamcity-azure-active-directory/issues/42 and have most of the code to Azure working,

However I can't seem to get the URL the user wanted to go to in the first place as this information seems to have been stripped out by teamcity.

Say user wants to go to https://teamcity.url/queue.html, the server notices it's unauthenticated and redirects to https://teamcity.url/login.html, but does not set a referrer.  As such when the request to Azure is made I can't set the relayurl.

Is there a way to get the original URL during the redirect to login.html?

Please sign in to leave a comment.