feat(cp-frontend): remove leading '/' from services url
This commit is contained in:
parent
20052a4a13
commit
15d689b0c2
@ -128,7 +128,7 @@ class ServiceList extends Component {
|
|||||||
|
|
||||||
const mapStateToProps = (state, ownProps) => ({
|
const mapStateToProps = (state, ownProps) => ({
|
||||||
servicesQuickActions: state.ui.services.quickActions,
|
servicesQuickActions: state.ui.services.quickActions,
|
||||||
url: ownProps.match.url
|
url: ownProps.match.url.replace(/\/$/, '')
|
||||||
});
|
});
|
||||||
|
|
||||||
const mapDispatchToProps = dispatch => ({
|
const mapDispatchToProps = dispatch => ({
|
||||||
|
@ -102,7 +102,7 @@ const ServicesTopology = ({
|
|||||||
|
|
||||||
const mapStateToProps = (state, ownProps) => ({
|
const mapStateToProps = (state, ownProps) => ({
|
||||||
servicesQuickActions: state.ui.services.quickActions,
|
servicesQuickActions: state.ui.services.quickActions,
|
||||||
url: ownProps.match.url,
|
url: ownProps.match.url.replace(/\/$/, ''),
|
||||||
push: ownProps.history.push
|
push: ownProps.history.push
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user