<!DOCTYPE html>
<html>
<head>
- <base href="/">
- <meta charset="utf-8">
+ <meta charset="utf-8">
<title>SDC Workflow App</title>
</head>
<body>
goToOverviewPage = id => {
const { history } = this.props;
- history.push('/workflow/' + id + '/overview');
+ const { location } = history;
+ history.push(`${location.pathname}/workflow/${id}/overview`);
};
searchChange = searchValue => {
routeToOverview = () => {
const { history, match } = this.props;
const workflowId = match.params.workflowId;
- history.push('/workflow/' + workflowId + '/overview');
+ history.push(`/workflows/workflow/${workflowId}/overview`);
};
sendSaveParamsToServer = () => {
const versions = yield call(overviewApi.getVersions, workflowId);
yield put(versionListFetchAction(versions));
yield call(
- history.push('/workflow/' + workflowId + '/version/' + data.id)
+ history.push(`/workflows/workflow/${workflowId}/version/${data.id}`)
);
} catch (error) {
yield put(genericNetworkErrorAction(error));
}
onSelectVersionFromTable = data => {
- const { history, workflow } = this.props;
- history.push('/workflow/' + workflow.id + '/version/' + data.id);
+ const { history } = this.props;
+ history.push('version/' + data.id);
};
onCreateNewVersionFromTable = () => {
})
})
);
- history.push('/');
+ history.push('/workflows');
}
export function* watchOverview() {
const Buttons = ({ history, archiveWorkflow, restoreWorkflow, isArchive }) => (
<div className="header-buttons">
<SVGIcon
- onClick={() => history.push('/')}
+ onClick={() => history.push('/workflows')}
label={I18n.t('workflow.overview.backBtnLabel')}
className="go-catalog-btn"
labelPosition="right"
export const routes = [
{
- path: '/workflow/:workflowId/version/:versionId',
+ path: '/workflows/workflow/:workflowId/version/:versionId',
component: Version,
routes: [
{
]
},
{
- path: '/',
+ path: '/workflows',
exact: true,
component: Catalog
},
{
- path: '/workflow/:workflowId/overview',
+ path: '/workflows/workflow/:workflowId/overview',
component: OverviewView
}
];
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
- <Set name="contextPath">/</Set>
-</Configure>
\ No newline at end of file
+ <Set name="contextPath">/workflows</Set>
+</Configure>