File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ export const SessionTasks = withCardStateProvider(() => {
112
112
return ;
113
113
}
114
114
115
- return navigate ( `./${ currentTaskKey } ` ) ;
115
+ return navigate ( `./${ INTERNAL_SESSION_TASK_ROUTE_BY_KEY [ currentTaskKey ] } ` ) ;
116
116
} ;
117
117
118
118
return (
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { isAbsoluteUrl } from '@clerk/shared/url';
3
3
import type { SetActiveNavigate } from '@clerk/types' ;
4
4
import { createContext , useContext , useMemo } from 'react' ;
5
5
6
- import { buildTaskURL } from '@/core/sessionTasks' ;
6
+ import { buildTaskURL , INTERNAL_SESSION_TASK_ROUTE_BY_KEY } from '@/core/sessionTasks' ;
7
7
8
8
import { SIGN_IN_INITIAL_VALUE_KEYS } from '../../../core/constants' ;
9
9
import { buildURL } from '../../../utils' ;
@@ -126,7 +126,7 @@ export const useSignInContext = (): SignInContextType => {
126
126
return ;
127
127
}
128
128
129
- return navigate ( `../tasks/${ currentTaskKey } ` ) ;
129
+ return navigate ( `../tasks/${ INTERNAL_SESSION_TASK_ROUTE_BY_KEY [ currentTaskKey ] } ` ) ;
130
130
} ;
131
131
132
132
const taskUrl = clerk . session ?. currentTask
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { isAbsoluteUrl } from '@clerk/shared/url';
3
3
import type { SetActiveNavigate } from '@clerk/types' ;
4
4
import { createContext , useContext , useMemo } from 'react' ;
5
5
6
- import { buildTaskURL } from '@/core/sessionTasks' ;
6
+ import { buildTaskURL , INTERNAL_SESSION_TASK_ROUTE_BY_KEY } from '@/core/sessionTasks' ;
7
7
8
8
import { SIGN_UP_INITIAL_VALUE_KEYS } from '../../../core/constants' ;
9
9
import { buildURL } from '../../../utils' ;
@@ -121,7 +121,7 @@ export const useSignUpContext = (): SignUpContextType => {
121
121
return ;
122
122
}
123
123
124
- return navigate ( `../tasks/${ currentTaskKey } ` ) ;
124
+ return navigate ( `../tasks/${ INTERNAL_SESSION_TASK_ROUTE_BY_KEY [ currentTaskKey ] } ` ) ;
125
125
} ;
126
126
127
127
const taskUrl = clerk . session ?. currentTask
Original file line number Diff line number Diff line change @@ -951,6 +951,7 @@ type ClerkOptionsNavigation =
951
951
952
952
/**
953
953
* A custom navigation function to be called just before the session and/or organization is set.
954
+ * @inline
954
955
*/
955
956
export type SetActiveNavigate = ( { session } : { session : SessionResource } ) => Promise < unknown > ;
956
957
You can’t perform that action at this time.
0 commit comments