Stupid direct solution [skip ci]

This commit is contained in:
ErickSkrauch 2019-02-01 18:15:59 +03:00
parent 4727e0d88a
commit bf7836d51f

View File

@ -96,7 +96,12 @@ export default class AuthFlow implements AuthContext {
* @param {object} options.replace * @param {object} options.replace
*/ */
this.navigate = (route: string, options: {replace?: bool} = {}) => { 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 = { this.currentRequest = {
path: route, path: route,
params: {}, params: {},