Skip to content

Investigate why Next returns an array for some redirects #1017

@sommeeeer

Description

@sommeeeer

#1016 (comment)

We should investigate why this is happening, and what those elements correspond to. If they are not the same we need to dig deeper for the cause.

This can happen if you have a redirect() in a page and you don't have a cacheHandler configured (or that get returns null). Next then gives you a Location which is an array of two elements that from my testing was the same. (i.e: Location: ["/target", "/target"];).

However, we thought we took care of this problem in this PR. It turns out there might be more cases where Next returns an array for the Location header. We need to identify all such cases and ensure we're selecting the correct value.

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