mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-30 02:32:58 +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
|
||||
*/
|
||||
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: {},
|
||||
|
Loading…
Reference in New Issue
Block a user