Themes

Router/Functional Components/ConditionalRedirect
ConditionalRedirect

Redirect only if route matches.

Props

Name
Description
Type
exact

If the route matching should be exact, or include child routes.

boolean
from

The route or routes to redirect from.

string | string[]
to

The route to redirect to.

string