Skip to content

After updating to v3.11.1 rewrite/redirects append a port to the URL #987

@pepijn-vanvlaanderen

Description

@pepijn-vanvlaanderen

Description

The last change for internal redirecting appends a port to the URL. However in our setup at Railway.app this does a faulty redirect. When the middleware should rewrite / redirect, it takes a long time and eventually redirects to the correct URL but with the port number and that crashes.

Reverting to v3.11.0 works.

Verifications

  • I've verified that the problem I'm experiencing isn't covered in the docs.
  • I've searched for similar, existing issues on GitHub and Stack Overflow.
  • I've compared my app to a working example to look for differences.

Reproduction description

Steps to reproduce:

  1. Open reproduction
  2. Wait about a minute or so
  3. See error: the page does not work and is redirected to https://domain:3000/winkelwagen

Expected behaviour

A redirect to https://domain/winkelwagen showing a page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions