Skip to content

Commit

Permalink
Fix parsing of URL params
Browse files Browse the repository at this point in the history
  • Loading branch information
bperel committed May 17, 2020
1 parent 26501e6 commit dcea13e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ export default {
readCookieUser: function () {
if (this.$route.query.oauth_verifier) {
this.readRequestTokenCookies();
} else if (location.search.indexOf("oauth_verifier=") !== -1) {
// Fix hash position (https://github.com/vuejs/vue-router/issues/2125#issuecomment-519521424)
location.replace(location.pathname + location.hash + location.search);
} else {
this.readAccessTokenCookies();
}
Expand Down

0 comments on commit dcea13e

Please sign in to comment.