Skip to content

Commit bed1b17

Browse files
authored
fix bad navigation (#164)
* fix bad navigation * fix routes
1 parent efad859 commit bed1b17

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/app/app.routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const routes: Routes = [
4545
),
4646
},
4747
{
48-
path: 'meetups/:loc',
48+
path: 'meetup/:loc',
4949
loadComponent: () =>
5050
import('./features/location/location.component').then(
5151
m => m.LocationComponent

src/app/core/layout/locations-tab/locations-tab.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ export class LocationsTabComponent {
2828
) {}
2929

3030
navigate(selected: string | string[]) {
31-
this.router.navigate(['location', selected]);
31+
this.router.navigate(['meetup', selected]);
3232
}
3333
}

src/app/features/meetups/meetups.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class MeetupsComponent {
5656
}
5757

5858
navigateToLocation(selected: string | string[]) {
59-
this.router.navigate(['meetups', selected]);
59+
this.router.navigate(['meetup', selected]);
6060
}
6161

6262
private findNewestMeetup$() {

0 commit comments

Comments
 (0)