Skip to content

RedirectPlugin port handling #219

Closed
@dbu

Description

@dbu

Description

As discussed in #218, there are some cases of redirections where our plugin will mess up. Currently we only overwrite the parts that are redefined. These cases will not work correctly when starting with e.g. https://localhost:8000:

  • Location: http://otherhost/foobar => need to drop the port (and we already replace schema and domain)
  • Location ://otherhost/foobar => need to drop port (and we already keep scheme which happens to be correct, and replace domain)
  • Location: /foobar => already correct, we don't touch any of the domain, scheme or port

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