Skip to content

Commit a318c72

Browse files
POST IA: Fix redirects (#2637)
Co-authored-by: Alexis Aguilar <[email protected]>
1 parent e71d7db commit a318c72

File tree

10 files changed

+318
-113
lines changed

10 files changed

+318
-113
lines changed
File renamed without changes.

docs/guides/development/custom-flows/overview.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ The following steps outline the sign-in process:
9292

9393
Session tasks require users to complete specific actions after authentication, such as selecting an organization. These tasks ensure that users meet all requirements before gaining full access to your application.
9494

95-
For detailed information about configuring and implementing session tasks, see the [session tasks overview](/docs/guides/secure/session-tasks).
95+
For detailed information about configuring and implementing session tasks, see the [session tasks overview](/docs/guides/configure/session-tasks).
9696

9797
#### Steps to handle session tasks
9898

9999
After completing the sign-up or sign-in process, you should check if the user has any pending tasks:
100100

101101
1. **Check for pending tasks**: Use the `navigate` parameter in [`setActive()`](/docs/reference/javascript/types/set-active-params) to access [`Session.currentTask`](/docs/reference/javascript/types/session-task) and check for pending session tasks.
102-
1. **Handle the task**: If a task exists, build UI to guide the user through completing the required action based on the task type. See the [available task types](/docs/guides/secure/session-tasks#available-tasks) to understand what actions may be required.
102+
1. **Handle the task**: If a task exists, build UI to guide the user through completing the required action based on the task type. See the [available task types](/docs/guides/configure/session-tasks#available-tasks) to understand what actions may be required.
103103
1. **Complete the flow**: Once all required tasks are completed, the session becomes fully `active` and the user can access protected content.
104104

105105
You can build your own UI to handle specific task types. For example, if the task is `choose-organization`, you can create a [custom organization creation component](/docs/guides/development/custom-flows/organizations/create-organizations) to allow users to create or select an organization before proceeding.

docs/guides/organizations/overview.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ In the Clerk Dashboard, there are two types of workspaces:
6060
- **Personal account**: A personal account/workspace is a user's unique, individual space, independent of any organization.
6161
- **Organization workspace**: An organization workspace is owned and managed by an organization, which can have multiple members, also known as collaborators. The organization workspace that a user is currently viewing is called the [active organization](/docs/guides/organizations/overview#active-organization).
6262

63-
Most multi-tenant applications want every user to be part of an organization rather than operating in an isolated personal account. Accordingly, **personal accounts are disabled by default** once you enable organizations. After signing up, [a user must create or join an organization before they can proceed](/docs/guides/secure/session-tasks).
63+
Most multi-tenant applications want every user to be part of an organization rather than operating in an isolated personal account. Accordingly, **personal accounts are disabled by default** once you enable organizations. After signing up, [a user must create or join an organization before they can proceed](/docs/guides/configure/session-tasks).
6464

6565
To enable personal accounts for your application, toggle **Allow personal accounts** in the [**Organizations Settings**](https://dashboard.clerk.com/last-active?path=organizations-settings) page.
6666

@@ -71,7 +71,7 @@ To enable personal accounts for your application, toggle **Allow personal accoun
7171

7272
When a user is a member of an organization, they can switch between different organizations. The organization workspace that a user is currently viewing is called the **active organization**. The active organization determines which organization-specific data the user can access and which role and related permissions they have within the organization.
7373

74-
When personal accounts are disabled (the default), users must select or create an organization to continue. This is handled automatically in the [session tasks flow](/docs/guides/secure/session-tasks).
74+
When personal accounts are disabled (the default), users must select or create an organization to continue. This is handled automatically in the [session tasks flow](/docs/guides/configure/session-tasks).
7575

7676
When personal accounts are enabled, users initially sign in to their personal account with **no** active organization set. The easiest way to allow users to set an organization as active is to use the [`<OrganizationSwitcher />`](/docs/reference/components/organization/organization-switcher) component. If the prebuilt components don't meet your specific needs or if you require more control over the logic, you can also use the `setActive()` method, which is returned by the [`useOrganizationList()`](/docs/reference/hooks/use-organization-list) hook. If you aren't using hooks, you can access the `setActive()` method from the [`Clerk`](/docs/reference/javascript/clerk#set-active) object.
7777

docs/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@
315315
},
316316
{
317317
"title": "Tasks after sign-up/sign-in",
318-
"href": "/docs/guides/secure/session-tasks"
318+
"href": "/docs/guides/configure/session-tasks"
319319
}
320320
]
321321
]

docs/reference/backend/sessions/get-session-list.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ type SessionStatus =
7171
| - | - |
7272
| `abandoned` | The session was abandoned client-side. |
7373
| `active` | The session is valid and all activity is allowed. |
74-
| `pending` | The user has signed in but hasn't completed [session tasks](/docs/guides/secure/session-tasks). |
74+
| `pending` | The user has signed in but hasn't completed [session tasks](/docs/guides/configure/session-tasks). |
7575
| `ended` | The user signed out of the session, but the `Session` remains in the `Client` object. |
7676
| `expired` | The period of allowed activity for this session has passed. |
7777
| `removed` | The user signed out of the session and the `Session` was removed from the `Client` object. |

docs/reference/javascript/session.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ All sessions that are **expired**, **removed**, **replaced**, **ended** or **aba
114114
- `currentTask`
115115
- <code>[SessionTask](/docs/reference/javascript/types/session-task) | null</code>
116116

117-
The current pending task for the session. Read more about [session tasks](/docs/guides/secure/session-tasks).
117+
The current pending task for the session. Read more about [session tasks](/docs/guides/configure/session-tasks).
118118
</Properties>
119119

120120
## Methods

docs/reference/javascript/types/session-status.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type SessionStatus =
2424
| - | - |
2525
| `abandoned` | The session was abandoned client-side. |
2626
| `active` | The session is valid and all activity is allowed. |
27-
| `pending` | The user has signed in but hasn't completed [session tasks](/docs/guides/secure/session-tasks). |
27+
| `pending` | The user has signed in but hasn't completed [session tasks](/docs/guides/configure/session-tasks). |
2828
| `ended` | The user signed out of the session, but the [`Session`][session-ref] remains in the [`Client`][client-ref] object. |
2929
| `expired` | The period of allowed activity for this session has passed. |
3030
| `removed` | The user signed out of the session and the [`Session`][session-ref] was removed from the [`Client`][client-ref] object. |

docs/reference/javascript/types/session-task.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: The SessionTask interface represents the current pending task of a
44
sdk: js-frontend
55
---
66

7-
An interface that represents the current [pending task](/docs/guides/secure/session-tasks) of a session.
7+
An interface that represents the current [pending task](/docs/guides/configure/session-tasks) of a session.
88

99
## Properties
1010

redirects/dynamic/docs.jsonc

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
[
22
{
33
"source": "/docs/authentication/saml/:path*",
4-
"destination": "/docs/authentication/enterprise-connections/:path*",
4+
"destination": "/docs/guides/configure/auth-strategies/enterprise-connections/:path*",
5+
"permanent": true,
6+
},
7+
{
8+
"source": "/docs/authentication/enterprise-connections/:path*",
9+
"destination": "/docs/guides/configure/auth-strategies/enterprise-connections/:path*",
510
"permanent": true,
611
},
712
{
813
"source": "/docs/components/customization/:path*",
9-
"destination": "/docs/customization/:path*",
14+
"destination": "/docs/guides/customizing-clerk/:path*",
1015
"permanent": true,
1116
},
1217
{
1318
"source": "/docs/customization/account-portal/:path*",
14-
"destination": "/docs/account-portal/:path*",
19+
"destination": "/docs/guides/customizing-clerk/account-portal/:path*",
1520
"permanent": true,
1621
},
1722
{
@@ -20,23 +25,18 @@
2025
"permanent": true,
2126
},
2227
{
23-
"source": "/docs/integrations/webhooks/:path*",
24-
"destination": "/docs/webhooks/:path*",
28+
"source": "/docs/customization/elements/:path*",
29+
"destination": "/docs/guides/customizing-clerk/elements/:path*",
2530
"permanent": true,
2631
},
2732
{
28-
"source": "/docs/reference/:path/custom-signup-signin-pages",
29-
"destination": "/docs/reference/:path/custom-sign-in-or-up-page",
33+
"source": "/docs/integrations/webhooks/:path*",
34+
"destination": "/docs/guides/development/webhooks/:path*",
3035
"permanent": true,
3136
},
3237
{
3338
"source": "/docs/backend-requests/versioning/:path*",
34-
"destination": "/docs/versioning/:path*",
35-
"permanent": true,
36-
},
37-
{
38-
"source": "/docs/reference/tanstack-start/:path*",
39-
"destination": "/docs/reference/tanstack-react-start/:path*",
39+
"destination": "/docs/guides/development/upgrading/versioning/:path*",
4040
"permanent": true,
4141
},
4242
{
@@ -49,21 +49,6 @@
4949
"destination": "/docs/:sdk/reference/hooks/:path*",
5050
"permanent": true,
5151
},
52-
{
53-
"source": "/docs/authentication/:path*",
54-
"destination": "/docs/guides/configure/auth-strategies/:path*",
55-
"permanent": true,
56-
},
57-
{
58-
"source": "/docs/integrations/:path*",
59-
"destination": "/docs/guides/development/integrations/:path*",
60-
"permanent": true,
61-
},
62-
{
63-
"source": "/docs/customization/elements/:path*",
64-
"destination": "/docs/guides/customizing-clerk/elements/:path*",
65-
"permanent": true,
66-
},
6752
{
6853
"source": "/docs/references/:path*",
6954
"destination": "/docs/reference/:path*",

0 commit comments

Comments
 (0)