|
@@ -1,10 +1,12 @@
|
|
import React from 'react';
|
|
import React from 'react';
|
|
-import { Switch } from 'react-router-dom';
|
|
|
|
|
|
+import { Switch, Redirect } from 'react-router-dom';
|
|
import {
|
|
import {
|
|
clusterConnectorsPath,
|
|
clusterConnectorsPath,
|
|
|
|
+ clusterConnectsPath,
|
|
clusterConnectorNewPath,
|
|
clusterConnectorNewPath,
|
|
clusterConnectConnectorPath,
|
|
clusterConnectConnectorPath,
|
|
clusterConnectConnectorEditPath,
|
|
clusterConnectConnectorEditPath,
|
|
|
|
+ clusterConnectConnectorsPath,
|
|
} from 'lib/paths';
|
|
} from 'lib/paths';
|
|
import { BreadcrumbRoute } from 'components/common/Breadcrumb/Breadcrumb.route';
|
|
import { BreadcrumbRoute } from 'components/common/Breadcrumb/Breadcrumb.route';
|
|
|
|
|
|
@@ -43,6 +45,14 @@ const Connect: React.FC = () => (
|
|
)}
|
|
)}
|
|
component={DetailsContainer}
|
|
component={DetailsContainer}
|
|
/>
|
|
/>
|
|
|
|
+ <Redirect
|
|
|
|
+ from={clusterConnectConnectorsPath(':clusterName', ':connectName')}
|
|
|
|
+ to={clusterConnectorsPath(':clusterName')}
|
|
|
|
+ />
|
|
|
|
+ <Redirect
|
|
|
|
+ from={`${clusterConnectsPath(':clusterName')}/:connectName`}
|
|
|
|
+ to={clusterConnectorsPath(':clusterName')}
|
|
|
|
+ />
|
|
</Switch>
|
|
</Switch>
|
|
</div>
|
|
</div>
|
|
);
|
|
);
|