Add redirects to page paths (#3161)

This commit is contained in:
Luke Heath 2021-12-01 11:42:31 -06:00 committed by GitHub
parent cb4707cef0
commit 6624a9dfef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1 @@
* Fix redirect of root page paths

View File

@ -92,6 +92,7 @@ const routes = (
<IndexRedirect to={"dashboard"} />
<Route path="dashboard" component={Homepage} />
<Route path="settings" component={AuthAnyAdminRoutes}>
<IndexRedirect to={"/dashboard"} />
<Route component={SettingsWrapper}>
<Route component={AuthenticatedAdminRoutes}>
<Route
@ -110,6 +111,7 @@ const routes = (
</Route>
</Route>
<Route path="hosts">
<IndexRedirect to={"manage"} />
<Route path="manage" component={ManageHostsPage} />
<Route
path="manage/labels/:label_id"
@ -131,6 +133,7 @@ const routes = (
</Route>
<Route component={AuthGlobalAdminMaintainerRoutes}>
<Route path="packs" component={PackPageWrapper}>
<IndexRedirect to={"manage"} />
<Route path="manage" component={ManagePacksPage} />
<Route path="new" component={PackComposerPage} />
<Route path=":id">
@ -141,6 +144,7 @@ const routes = (
</Route>
<Route component={AuthAnyMaintainerAnyAdminRoutes}>
<Route path="schedule" component={SchedulePageWrapper}>
<IndexRedirect to={"manage"} />
<Route path="manage" component={ManageSchedulePage} />
<Route
path="manage/teams/:team_id"
@ -149,6 +153,7 @@ const routes = (
</Route>
</Route>
<Route path="queries" component={QueryPageWrapper}>
<IndexRedirect to={"manage"} />
<Route path="manage" component={ManageQueriesPage} />
<Route component={AuthAnyMaintainerAnyAdminRoutes}>
<Route path="new" component={QueryPage} />
@ -156,6 +161,7 @@ const routes = (
<Route path=":id" component={QueryPage} />
</Route>
<Route path="policies" component={PoliciesPageWrapper}>
<IndexRedirect to={"manage"} />
<Route path="manage" component={ManagePoliciesPage} />
<Route component={AuthAnyMaintainerAnyAdminRoutes}>
<Route path="new" component={PolicyPage} />