Hi @Smith, Noah
Thank you for post!
The behavior of the back button is a feature of the web browser and is not directly controllable by a web application or a cloud service like Azure.
You can use JavaScript to disable the back button or redirect the user to a different page when they click the back button.
Use the replaceState
method of the history object in JavaScript to replace the current history entry with a new one, effectively removing the Azure portal from the user's history.
Reference: https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState
https://medium.com/cnk-tech/controlling-and-directing-browsers-back-button-with-javascript-eaa798acdeb5
https://learn.microsoft.com/en-us/entra/identity-platform/reply-url
Hope this helps. Do let us know if you any further queries.
Thanks,
Akhilesh.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.