Skip to content

Commit 6f93be7

Browse files
Update explanation of redirect URLs (#2671)
Co-authored-by: Sarah Soutoul <[email protected]>
1 parent 3f950c4 commit 6f93be7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/guides/development/customize-redirect-urls.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ title: Customize your redirect URLs
33
description: Customize where your users are redirected to after they sign in or sign up.
44
---
55

6-
To avoid breaking a user's flow through your app, when a user navigates to a Clerk sign up or sign in page via a link or button, Clerk will:
6+
When a user navigates to a Clerk sign-up or sign-in page via a link or button, like [`<SignInButton />`](/docs/reference/components/unstyled/sign-in-button), Clerk will:
77

8-
1. Persist the previous page's URL in a `redirect_url` query string
9-
1. Navigate back to that page after the sign-up or sign-in is completed
8+
1. Persist the previous page's URL in a `redirect_url` query string.
9+
1. Navigate back to that page after the sign-up or sign-in is completed.
1010

11-
For example, a user selecting a sign-in button on `example.com/foo` will navigate to `example.com/sign-in?redirect_url=example.com/foo`, then navigate back to `example.com/foo` upon completing the sign-in process.
11+
For example, a user selecting a sign-in button on `example.com/foo` is navigated to `example.com/sign-in?redirect_url=example.com/foo`. Once the sign-in process is completed, Clerk will then use the `redirect_url` query string to redirect the user back to `example.com/foo`.
1212

1313
However, you can customize this behavior to redirect users to a specific page by using the following methods:
1414

0 commit comments

Comments
 (0)