Skip to content

Commit f4f5abe

Browse files
committed
Revert "Merge pull request #12841 from cpathipa/fix-rerouting-settings-accountsettings"
This reverts commit d008f10, reversing changes made to 6232778.
1 parent d008f10 commit f4f5abe

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

packages/manager/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
3333
- Profile preferences not retained across sessions ([#12795](https://github.com/linode/manager/pull/12795))
3434
- Make a Payment and Add Payment drawers not closing when browser back button is clicked ([#12796](https://github.com/linode/manager/pull/12796))
3535
- Node Pool footer layout ([#12798](https://github.com/linode/manager/pull/12798))
36-
- Redirects /settings to /account-settings ([#12841](https://github.com/linode/manager/pull/12841))
3736

3837
### Removed:
3938

packages/manager/src/routes/accountSettings/index.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,3 @@ export const accountSettingsRouteTree = accountSettingsRoute.addChildren([
4040
accountSettingsIndexRoute,
4141
accountSettingsCatchAllRoute,
4242
]);
43-
44-
// This supports redirecting from /settings to /account-settings(which renamed from 'settings' to 'account-settings' ).
45-
export const settingsRouteTree = createRoute({
46-
getParentRoute: () => rootRoute,
47-
path: 'settings',
48-
beforeLoad: () => {
49-
throw redirect({ to: '/account-settings' });
50-
},
51-
});

packages/manager/src/routes/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import React from 'react';
66
import { ErrorComponent } from 'src/features/ErrorBoundary/ErrorComponent';
77

88
import { accountRouteTree } from './account';
9-
import { accountSettingsRouteTree, settingsRouteTree } from './accountSettings';
9+
import { accountSettingsRouteTree } from './accountSettings';
1010
import { cloudPulseAlertsRouteTree } from './alerts';
1111
import {
1212
cancelLandingRoute,
@@ -86,7 +86,6 @@ export const routeTree = rootRoute.addChildren([
8686
quotasRouteTree,
8787
searchRouteTree,
8888
serviceTransfersRouteTree,
89-
settingsRouteTree,
9089
stackScriptsRouteTree,
9190
supportRouteTree,
9291
usersAndGrantsRouteTree,

0 commit comments

Comments
 (0)