Azure / Azure/static-web-apps

post_login_redirect_uri does not work with URLs that contain spaces (%20)

Open
#628 2 comments 4 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

This is related to issue #502 in which solution was provided to use the latest feature available on azure static webapps to handle post login URL redirection by using below setting; but I tested and see that redirection works only as long as the URL does not contain a space.
"post_login_redirect_uri=.referrer"

Quoting @mishapos comment on the original issue:

> We now support adding "post_login_redirect_uri=.referrer" to achieve the behavior of redirecting back to the page before the login flow started. Query parameters and fragments are not supported though.

Does this mean the encoding is also not supported (like %20 for space)?

** Example To Reproduce**:

**This works:** https://something.com/articles/EXTERNAL/README.html
**This does not work:** https://something.com/articles/INTERNAL/Some%20Configuration/Some%20Add%20User/Some%20Add%20User.html

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.