Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect inserting unexpected slash between index and parameters #300

Open
Ryan-Pierce opened this issue Feb 17, 2022 · 0 comments
Open

Comments

@Ryan-Pierce
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant