diff --git a/src/router/index.ts b/src/router/index.ts index 812055b..bb6165d 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -54,65 +54,65 @@ const routes = [ }, children: [ { - path: "/member-area", + path: "member-area", name: "MemberArea", component: MemberArea, }, { - path: "/files", + path: "files", name: "Files", component: Files, }, { - path: "/account", + path: "", name: "Account Management", children: [ { - path: "/account-admin", + path: "account-admin", name: "AcctAdmin", component: AccountAdmin, }, ], }, { - path: "/my-account", + path: "my-account", name: "My Account", component: MyAccount, }, { - path: "/upload", // router.push({ replace: true }) does not add the path to history + path: "upload", // router.push({ replace: true }) does not add the path to history name: "Upload", component: Upload, }, { - path: "/discover", + path: "discover", name: "Discover", children: [ { // type: log | filter, the parameter can be either. // fileId: log_id | filter_id, the parameter can be either. - path: "/discover/:type/:fileId/map", + path: ":type/:fileId/map", name: "Map", component: Map, }, { // type: log | filter, the parameter can be either. // fileId: log_id | filter_id, the parameter can be either. - path: "/discover/:type/:fileId/conformance", + path: ":type/:fileId/conformance", name: "Conformance", component: Conformance, }, { // type: log | filter, the parameter can be either. // fileId: log_id | filter_id, the parameter can be either. - path: "/discover/:type/:fileId/performance", + path: ":type/:fileId/performance", name: "Performance", component: Performance, }, { // type: log | filter, the parameter can be either. // fileId: check_id, fetches parent data via `/log-checks/{check_id}` - path: "/discover/conformance/:type/:fileId/map", + path: "conformance/:type/:fileId/map", name: "CheckMap", component: Map, meta: { @@ -122,7 +122,7 @@ const routes = [ { // type: log | filter, the parameter can be either. // fileId: check_id, fetches parent data via `/log-checks/{check_id}` - path: "/discover/conformance/:type/:fileId/conformance", + path: "conformance/:type/:fileId/conformance", name: "CheckConformance", component: Conformance, meta: { @@ -132,7 +132,7 @@ const routes = [ { // type: log | filter, the parameter can be either. // fileId: check_id, fetches parent data via `/log-checks/{check_id}` - path: "/discover/conformance/:type/:fileId/performance", + path: "conformance/:type/:fileId/performance", name: "CheckPerformance", component: Performance, meta: { @@ -142,16 +142,16 @@ const routes = [ ], }, { - path: "/compare", + path: "compare", name: "Compare", children: [ { - path: "/compare/dashboard/:primaryType/:primaryId/:secondaryType/:secondaryId", + path: "dashboard/:primaryType/:primaryId/:secondaryType/:secondaryId", name: "CompareDashboard", component: CompareDashboard, }, { - path: "/compare/map/:primaryType/:primaryId/:secondaryType/:secondaryId", + path: "map/:primaryType/:primaryId/:secondaryType/:secondaryId", name: "MapCompare", component: MapCompare, },