fix: links of timetable tabs

Closes #144
This commit is contained in:
Jovan Krunić
2021-11-08 21:05:34 +01:00
committed by Rainer Killinger
parent 1c56c891e1
commit 837c69bb21
2 changed files with 9 additions and 10 deletions

View File

@@ -438,7 +438,7 @@ export class MapPageComponent {
this.distance = this.positionService.getDistance(this.items[0].geo.point);
this.addToMap(this.items, true);
this.ref.detectChanges();
const url = this.router.createUrlTree(['/map/', uid]).toString();
const url = this.router.createUrlTree([[], uid]).toString();
this.location.go(url);
// center the selected place
this.focus(geoJSON(this.items[0].geo.point).getBounds().getCenter());