Redirect with full path

pull/466/head
Will Piers 2016-11-10 15:09:45 -08:00
parent 3c7df654e4
commit d2354b8e24
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ export const KapacitorRulePage = React.createClass({
});
delete newRule.queryID;
createRule(this.state.kapacitor, newRule).then(() => {
this.props.router.push(`sources/${source.id}/alert-rules`);
this.props.router.push(`/sources/${source.id}/alert-rules`);
this.props.addFlashMessage({type: 'success', text: `Rule successfully created`});
}).catch(() => {
this.props.addFlashMessage({type: 'failure', text: `There was a problem creating the rule`});