Skip to content

Commit 53a4104

Browse files
authored
refactor(account-center): change route from /account-center to /account (#8073)
1 parent 0da12ba commit 53a4104

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

packages/account-center/src/Callback.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Callback = () => {
99
}, [clearAllTokens]);
1010

1111
const { error } = useHandleSignInCallback(() => {
12-
window.location.assign('/account-center');
12+
window.location.assign('/account');
1313
});
1414

1515
if (error) {
@@ -20,7 +20,7 @@ const Callback = () => {
2020
<button
2121
type="button"
2222
onClick={() => {
23-
window.location.assign('/account-center');
23+
window.location.assign('/account');
2424
}}
2525
>
2626
Back to sign in

packages/account-center/src/utils/account-center-route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
usernameSuccessRoute,
1010
} from '@ac/constants/routes';
1111

12-
export const accountCenterBasePath = '/account-center';
12+
export const accountCenterBasePath = '/account';
1313
const storageKey = 'account-center-route-cache';
1414

1515
const knownRoutePrefixes: readonly string[] = [

packages/account-center/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const experienceAliasPlugin = (): Plugin => ({
3030
});
3131

3232
const buildConfig = (mode: string): UserConfig => ({
33-
base: '/account-center',
33+
base: '/account',
3434
server: {
3535
port: 5004,
3636
hmr: {

packages/core/src/oidc/adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const buildDemoAppClientMetadata = (envSet: EnvSet): AllClientMetadata => {
5959

6060
const buildAccountCenterClientMetadata = (envSet: EnvSet): AllClientMetadata => {
6161
const urlStrings = getTenantUrls(envSet.tenantId, EnvSet.values).map(
62-
(url) => appendPath(url, '/account-center').href
62+
(url) => appendPath(url, '/account').href
6363
);
6464

6565
return {

0 commit comments

Comments
 (0)