<RedirectToOrganizationProfile /> (deprecated)
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
import { Show, RedirectToOrganizationProfile } from '@clerk/tanstack-react-start'
import { createFileRoute } from '@tanstack/react-router'
export const Route = createFileRoute('/')({
component: Home,
})
function Home() {
return (
<div>
<Show when="signed-in">
<RedirectToOrganizationProfile />
</Show>
<Show when="signed-out">
<p>You need to sign in to view your Organization profile.</p>
</Show>
</div>
)
}Feedback
Last updated on