mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-30 10:42:34 +05:30
Stupid direct solution [skip ci]
This commit is contained in:
parent
4727e0d88a
commit
bf7836d51f
@ -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: {},
|
||||||
|
Loading…
Reference in New Issue
Block a user