Skip to content

Commit

Permalink
Fix routing loop (#12959)
Browse files Browse the repository at this point in the history
  • Loading branch information
chnn committed Mar 27, 2019
1 parent 80038f3 commit 9252677
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
1. [12793](https://github.com/influxdata/influxdb/pull/12793): Fix task creation error when switching schedule types.
1. [12805](https://github.com/influxdata/influxdb/pull/12805): Fix hidden horizonal scrollbars in flux raw data view
1. [12827](https://github.com/influxdata/influxdb/pull/12827): Fix screen tearing bug in Raw Data View
1. [12959](https://github.com/influxdata/influxdb/pull/12959): Fix routing loop

### UI Improvements

Expand Down
2 changes: 1 addition & 1 deletion ui/src/Signin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class Signin extends PureComponent<Props, State> {
this.props.notify(sessionTimedOut())
}

this.props.router.push(`/signin${returnTo}`)
this.props.router.replace(`/signin${returnTo}`)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/onboarding/components/SigninForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class SigninForm extends PureComponent<Props, State> {
const {query} = this.props.location

if (query && query.returnTo) {
router.push(query.returnTo)
router.replace(query.returnTo)
} else {
router.push('/')
}
Expand Down

0 comments on commit 9252677

Please sign in to comment.