From 1d32a03a8f2a4e182a6032fce7c81b5e2c50cf3a Mon Sep 17 00:00:00 2001 From: mdelez <60604010+mdelez@users.noreply.github.com> Date: Mon, 26 Sep 2022 10:52:35 +0200 Subject: [PATCH] fix(project): fix route to lists (#834) --- src/app/project/project.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 }); }