How to preserve URL fragments (hash) during auth (solution not working)

Thomas Dommett 0 Reputation points Microsoft Employee
2025-04-10T01:34:06.2066667+00:00

There is documentation supporting that this is a known limitation and a solution is provided, however when I applied it, it doesn't have any effect, and I don't know how to access any kind of logging to determine why, or if there's any gotcha's with overriding config elsewhere?

Authentication on the web app setup to use Microsoft and redirect (require auth).

Adding the app setting WEBSITE_AUTH_PRESERVE_URL_FRAGMENT set to true (Environment variables > App Settings)

I followed the instructions on the learning page - https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-customize-sign-in-out#preserve-url-fragments

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,660 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.