fix: schedule tabs navigating to the wrong url

This commit is contained in:
2023-04-24 08:45:29 +02:00
committed by Thea Schöbl
parent f49c44f5c5
commit abf2ab6a5a

View File

@@ -164,7 +164,7 @@ export class SchedulePageComponent implements OnInit, AfterViewInit {
* When the segment changes
*/
onSegmentChange() {
const url = this.router.createUrlTree([[], 'schedule', this.segmentView.value]).toString();
const url = this.router.createUrlTree(['schedule', this.segmentView.value]).toString();
this.location.go(url);
this.tabChoreographer.changeViewForState(this.segmentView.value);
}