diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 12d6090..14e58d2 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -3,7 +3,6 @@ import {RouterModule, Routes} from '@angular/router'; import {LogInComponent} from "./user/log-in/log-in.component"; import {UserProfileComponent} from "./user/user-profile/user-profile.component"; import {RoutesComponent} from "./route/routes/routes.component"; -import {UserRoutesComponent} from "./route/user-routes/user-routes.component"; import {RouteDetailComponent} from "./route/route-detail/route-detail.component"; import {RouteEditComponent} from "./route/route-edit/route-edit.component"; import {RouteInfoComponent} from "./route/route-info/route-info.component"; @@ -69,11 +68,6 @@ const routes: Routes = [ } ] }, - { - path: 'routes/:id/edit', - canActivate: [AuthGuardService], - component: RouteEditComponent - }, // { // path: 'users/:id/routes', // canActivate: [AuthGuardService], diff --git a/src/app/map-location/map-location-edit/map-location-edit.component.ts b/src/app/map-location/map-location-edit/map-location-edit.component.ts index 762b0ab..c84d7ce 100644 --- a/src/app/map-location/map-location-edit/map-location-edit.component.ts +++ b/src/app/map-location/map-location-edit/map-location-edit.component.ts @@ -129,7 +129,7 @@ export class MapLocationEditComponent implements OnInit { if (this.editMode) { this.router.navigate(['yourRoutes/list']) } else { - this.router.navigate(['routes/' + this.routeId + '/edit']); + this.router.navigate(['yourRoutes/' + this.routeId + '/edit']); } }