Skip to content

Is there a way to redirect silently ? #4499

Description

@qlereboursBS

Hello,
first, I'd like to say that this is a question, please add the question tag to this issue.

My question is: Is there a way to redirect silently?
What I mean by "redirect silently" is that I don't want the user that is requesting to know that there was a redirection:

  • It shouldn't answer with a 3xx code, but with the code returned by the route it's been redirected to
  • Any header should show the URL we've been redirected to

If you want to know more, this is for an API versioning use case (the user reaches /api/users and we created an interceptor that redirects to /api/v7/users depending on the api he passed as a header, we'll know which version he's using).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions