BasicAuth redirect removes QueryString from originalPath
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
When configuring a `SitePassword` Azure Static Apps will redirect any visitor to `.auth/basicAuth/login?originalPath=`.
After providing the password the app will redirect back to the `originalPath`.
However if the original URL contains a querystring the app will strip it from the `originalPath` and redirect to path without querystring.
**To Reproduce**
Steps to reproduce the behavior:
1. Configure a `Sitepassword`
2. Go to `https://yourapp.azurestaticapps.net/test?qs=testqs`
3. The app will redirect to `https://yourapp.azurestaticapps.net/.auth/basicAuth/login?originalPath=test` (querystring is already stripped)
4. Enter password
5. The app will redirect to `https://yourapp.azurestaticapps.net/test` and the querystring is lost.
**Expected behavior**
The app preserves the original querystring in the auth-flow.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.