Azure / Azure/static-web-apps

Redirect parameter in staticwebapp.config.json not encoded correctly

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

Description

I am using the staticwebapp.config.json to define route patterns as described in the official docs. However the application seems to not parse the redirect parameter for post login and post logout correctly. Please see my example below:
```
{
"route": "/logout",
"rewrite": "/.auth/logout?post_logout_redirect_uri=/callback"
}
```
this produces the following URI: **/.auth/logout%3fpost_logout_redirect_uri%3d/callback**

Interestingly enough, this issue doesn't occure when I test it on my local dev server with the SWA Cli

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.