diff --git a/src/app/project/project.component.ts b/src/app/project/project.component.ts index dd09b55dbc..82dcffd100 100644 --- a/src/app/project/project.component.ts +++ b/src/app/project/project.component.ts @@ -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 }); }