We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c4abefe + 9db44be commit 572872dCopy full SHA for 572872d
src/routes.js
@@ -94,9 +94,9 @@ class Routes extends React.Component {
94
getFreshToken().then((token) => {
95
this.props.saveToken(token)
96
}).catch((error) => {
97
- console.error(error)
98
- const redirectBackToUrl = window.location.origin + this.props.location.pathname
99
- window.location = ACCOUNTS_APP_LOGIN_URL + '?retUrl=' + redirectBackToUrl
+ console.error(error.message)
+ const redirectBackToUrl = encodeURIComponent(window.location.origin + this.props.location.pathname)
+ window.location = `${ACCOUNTS_APP_LOGIN_URL}?retUrl=${redirectBackToUrl}`
100
})
101
}
102
0 commit comments