Skip to content

Redirect inserting unexpected slash between index and parameters #300

@Ryan-Pierce

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?

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