Route redirect with matched part
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
When migrating from the old website, we often have new route names for the same resources. For example in the legacy app we had this route to access some resources:
```
/resource/detail/:id
```
The new application has this route:
```
/recoures/:id
```
To enable old URLs to still work, we would now like to introduce permanent redirects for these routes. I'm not sure that currently that is possible with Azure static web apps.
**Describe the solution you'd like**
If there would be a way to match part of the route and use that part with the new route, that would solve my problem. Something like:
```
"routes": [
{
"route": "/resource/details/{id}",
"redirect": "/resources/{id}",
"statusCode": 301
}
]
```
Is there any way to achieve this with Azure static web apps? Is there any plan for the future to support this?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.