Skip to main content
Docs

<RedirectToOrganizationProfile /> (deprecated)

Warning

This feature is deprecated. Please use the redirectToOrganizationProfile() methodJavaScript Icon instead.

The <RedirectToOrganizationProfile /> component will navigate to the Organization profile URL which has been configured in your application instance. The behavior will be just like a server-side (3xx) redirect, and will override the current location in the history stack.

Example

app/routes/Home.tsx
import { Show, RedirectToOrganizationProfile } from '@clerk/react-router'

export default function Home() {
  return (
    <>
      <Show when="signed-in">
        <RedirectToOrganizationProfile />
      </Show>
      <Show when="signed-out">You need to sign in to view your Organization profile.</Show>
    </>
  )
}

Feedback

What did you think of this content?

Last updated on