Redirect inserting unexpected slash between index and parameters
Maintainers usually reply within 5 days
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- backend
Research direction
Start by reproducing the redirect with the shown redirects and trailingSlash configuration, then trace the redirect handling entry point to identify where the slash is inserted. Done means a destination of /index.html?u=:1 redirects without the unexpected slash while the existing configuration behavior remains intact.
Written by the indexing model from the issue text.
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?
- Dominant language
- TypeScript
- Stars
- 1.1k
- Forks
- 90
- Avg merge
- 3d 19h
- Merged PRs (30d)
- 13
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/superstatic
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
firebase/superstatic#622 ·
Maintainers usually reply within 5 days
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
firebase/superstatic#573 · 2 comments ·
Maintainers usually reply within 5 days
-
superstatic always loads configs from existing `firebase.json` file on project rootPossibly taken @jabrailkhalil claimed this 45 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
firebase/superstatic#503 · 2 reactions ·
Maintainers usually reply within 5 days
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
firebase/superstatic#286 ·
Maintainers usually reply within 5 days
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
firebase/superstatic#277 · 4 reactions ·
Maintainers usually reply within 5 days
All issues in firebase/superstatic
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vercel-labs/ui#865 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
outline/outline#14638 · 1 comment ·
Maintainers usually reply within 1 day
-
wayfinder:grilling
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
patricktree/cup#484 ·
-
bot:ai-assisted component:platform-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
midnightntwrk/platform-js#69 ·
Maintainers usually reply within 1 day