Azure / Azure/static-web-apps

Redirect with wildcards and segments in url not working

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

Description

staticwebapp.config.json contains redirects.
Trying to open `/old-path/abc`returns `https://eample.com/new-path/:path*`

```json
{
"routes": [
{
"route": "/old-path/*",
"redirect": "https://example.com/new-path/:path*",
"statusCode": 301
}
],
"navigationFallback": {
"rewrite": "/index.html",
"exclude": ["/static/*", "/fonts/*", "/scripts/*", "/api/*", "/old-path/*"]
}
}
```

Are segment redirects supported?

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.