firebase / firebase/superstatic

Redirect inserting unexpected slash between index and parameters

Open
#300 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.1k
Forks
88
Avg merge
17h 43m
Merged PRs (30d)
2

Description

The URL
```
https://example.com/Ryan
```
is redirecting to
```
https://example.com/index.html/?u=Ryan
^
unexpected trailing slash
```
My configurations are as follows:
```
...
{
"redirects": [
{
"regex": "/(\\w+)",
"destination": "/index.html?u=:1",
"type": 301
}
],
"trailingSlash": false
}
```
I don't expect that slash in the redirected URL since it is not in my `destination`. Is my understanding wrong? How can I remove the unexpected slash?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.