Skip to content

Commit

Permalink
fix(project): fix route to lists (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelez committed Sep 26, 2022
1 parent dfa0c85 commit 1d32a03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/project/project.component.ts
Expand Up @@ -218,7 +218,11 @@ export class ProjectComponent implements OnInit {
id = array[pos];
}
if (id) {
this._router.navigate([route, encodeURIComponent(id), 'editor', 'classes'], { relativeTo: this._route });
if (route === 'ontology') {
this._router.navigate([route, encodeURIComponent(id), 'editor', 'classes'], { relativeTo: this._route });
} else {
this._router.navigate([route, encodeURIComponent(id)], { relativeTo: this._route });
}
} else {
this._router.navigate([route], { relativeTo: this._route });
}
Expand Down

0 comments on commit 1d32a03

Please sign in to comment.