redirectDocument
react-router

redirectDocument

redirectDocument(url, init): Response

A redirect response that will force a document reload to the new location. Sets the status code and the Location header. Defaults to "302 Found".

Parameters

  • url: string
  • init: number | ResponseInit
Docs and examples CC 4.0