Azure / Azure/static-web-apps

Password protection page removes query string from url

Open
#1,220 7 comments 10 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

I have enabled password protection for a Static Web App for the stage environments. The problem is that the login screen that azure shows for Authentication removes the query string params.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to Azure Static Web App > Configuration > General Settings
2. Enable password protection and set up a password
3. Go back to your website and try to open a url with query params eg. _www.mysite.com/test?param=1_
4. You are redirected to _www.mysite.com/.auth/basicAuth/login?originalPath=test_
5. Query string "?param=1" is now lost, so after you enter password you are lead to _www.mysite.com/test_

**Expected behavior**
I would expect to be redirected to sth like _www.mysite.com/.auth/basicAuth/login?originalPath=test&originalSearch=param=1_ so that information in the query string is preserved.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.