feat(cp-frontend): remove leading '/' from services url

This commit is contained in:
Sérgio Ramos 2017-06-28 11:00:07 +01:00 committed by Judit Greskovits
parent 20052a4a13
commit 15d689b0c2
2 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ class ServiceList extends Component {
const mapStateToProps = (state, ownProps) => ({
servicesQuickActions: state.ui.services.quickActions,
url: ownProps.match.url
url: ownProps.match.url.replace(/\/$/, '')
});
const mapDispatchToProps = dispatch => ({

View File

@ -102,7 +102,7 @@ const ServicesTopology = ({
const mapStateToProps = (state, ownProps) => ({
servicesQuickActions: state.ui.services.quickActions,
url: ownProps.match.url,
url: ownProps.match.url.replace(/\/$/, ''),
push: ownProps.history.push
});