const regex = new RegExp('[\\?&]' + safeName + '=([^&#]*)');
const results = regex.exec(search);
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
- };
+ }
componentDidMount() {
const search = this.props.location ? this.props.location.search : "";
});
}
render() {
- return <Redirect to="/"/>
+ return <Redirect to="/"/>;
}
}