From bf7836d51f48accd74b372965ed049fb786690bf Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Fri, 1 Feb 2019 18:15:59 +0300 Subject: [PATCH] Stupid direct solution [skip ci] --- src/services/authFlow/AuthFlow.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/services/authFlow/AuthFlow.js b/src/services/authFlow/AuthFlow.js index 418fe18..b46e78f 100644 --- a/src/services/authFlow/AuthFlow.js +++ b/src/services/authFlow/AuthFlow.js @@ -96,7 +96,12 @@ export default class AuthFlow implements AuthContext { * @param {object} options.replace */ this.navigate = (route: string, options: {replace?: bool} = {}) => { - if (this.getRequest().path !== route) { + const { path: currentPath } = this.getRequest(); + if (currentPath !== route) { + if (currentPath.startsWith('/oauth2/v1') && options.replace === undefined) { + options.replace = true; + } + this.currentRequest = { path: route, params: {},