Skip to content

Commit

Permalink
fix bad navigation (#164)
Browse files Browse the repository at this point in the history
* fix bad navigation

* fix routes
  • Loading branch information
RobertSenkel authored Jan 30, 2025
1 parent efad859 commit bed1b17
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const routes: Routes = [
),
},
{
path: 'meetups/:loc',
path: 'meetup/:loc',
loadComponent: () =>
import('./features/location/location.component').then(
m => m.LocationComponent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ export class LocationsTabComponent {
) {}

navigate(selected: string | string[]) {
this.router.navigate(['location', selected]);
this.router.navigate(['meetup', selected]);
}
}
2 changes: 1 addition & 1 deletion src/app/features/meetups/meetups.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class MeetupsComponent {
}

navigateToLocation(selected: string | string[]) {
this.router.navigate(['meetups', selected]);
this.router.navigate(['meetup', selected]);
}

private findNewestMeetup$() {
Expand Down

0 comments on commit bed1b17

Please sign in to comment.