[SEBA-295] Fixing navigation for related models

Change-Id: I5027a5f6a3eba44f64bbd9f7a6acb74c84c27c07
diff --git a/src/app/core/services/helpers/config.helpers.ts b/src/app/core/services/helpers/config.helpers.ts
index 0ae1011..ed8d51c 100644
--- a/src/app/core/services/helpers/config.helpers.ts
+++ b/src/app/core/services/helpers/config.helpers.ts
@@ -154,7 +154,8 @@
           label: 'details',
           icon: 'search',
           cb: (item) => {
-            this.$state.go(this.$state.current.name, {id: item.id});
+            const state = this.stateWithParamsForJs(item.leaf_model_name, item.id);
+            this.$state.go(state.name, state.params);
           }
         },
         {