support workflow route change 2 38/78738/1
authorYarin Dekel <yarind@amdocs.com>
Tue, 19 Feb 2019 09:42:04 +0000 (11:42 +0200)
committerYarin Dekel <yarind@amdocs.com>
Tue, 19 Feb 2019 09:44:17 +0000 (11:44 +0200)
Issue-ID: SDC-2126
Change-Id: I8ea037d6825053a9392d952ecca5dffc5ad09f77
Signed-off-by: Yarin Dekel <yarind@amdocs.com>
workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx
workflow-designer-ui/src/main/frontend/src/features/workflow/overview/overviewSagas.js
workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowHeader.jsx

index c1cd68c..edaa64f 100644 (file)
@@ -101,7 +101,7 @@ class CatalogView extends Component {
     goToOverviewPage = id => {
         const { history } = this.props;
         const { location } = history;
-        history.push(`${location.pathname}/workflow/${id}/overview`);
+        history.push(`${location.pathname}workflow/${id}/overview`);
     };
 
     searchChange = searchValue => {
index 41002c8..792d4c0 100644 (file)
@@ -93,7 +93,7 @@ export function* archiveWorkflow(action) {
             })
         })
     );
-    history.push('/workflows');
+    history.push('/workflows/');
 }
 
 export function* watchOverview() {
index e40b19a..ce28129 100644 (file)
@@ -23,7 +23,7 @@ import ArchiveLabel from 'shared/archiveLabel/ArchiveLabel';
 const Buttons = ({ history, archiveWorkflow, restoreWorkflow, isArchive }) => (
     <div className="header-buttons">
         <SVGIcon
-            onClick={() => history.push('/workflows')}
+            onClick={() => history.push('/workflows/')}
             label={I18n.t('workflow.overview.backBtnLabel')}
             className="go-catalog-btn"
             labelPosition="right"