Skip to content

Redirect inserting unexpected slash between index and parameters #300

Description

@Ryan-Pierce

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions