Skip to content

Commit

Permalink
switch navigateByUrl to navigate with array format
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-the-coder committed Mar 7, 2024
1 parent ac9fc3d commit 2615984
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class FhirDatatableComponent implements OnInit, OnChanges {
}

componentRef.instance.selectionChanged.subscribe((selected: FastenDisplayModel) => {
this.router.navigateByUrl(`/explore/${selected?.source_id}/resource/${selected?.source_resource_id}`);
this.router.navigate(['/explore', selected?.source_id, 'resource', selected?.source_resource_id]);
})
this.knownResourceType = (componentType != DatatableFallbackComponent)
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/pages/dashboard/dashboard.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class DashboardComponent implements OnInit {
}

selectSource(selectedSource: Source){
this.router.navigateByUrl(`/explore/${selectedSource.id}`, {
this.router.navigate(['/explore', selectedSource.id], {
state: selectedSource
});
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/pages/explore/explore.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class ExploreComponent implements OnInit {
}

public exploreSource(sourceListItem: SourceListItem, ) {
this.router.navigateByUrl(`/explore/${sourceListItem.source.id}`, {
this.router.navigate(['/explore', sourceListItem.source.id], {
state: sourceListItem.source
});

Expand Down

0 comments on commit 2615984

Please sign in to comment.