File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,15 @@ const routes = [
29
29
} ,
30
30
{
31
31
path : "/" ,
32
- redirect : { name : "ObservableMatch" } ,
32
+ redirect : to => {
33
+ if ( localStorage . getItem ( "next" ) !== null ) {
34
+ let redirect_uri = localStorage . getItem ( "next" ) ;
35
+ localStorage . removeItem ( "next" ) ;
36
+ return { path : redirect_uri } ;
37
+ } else {
38
+ return { name : "ObservableMatch" } ;
39
+ }
40
+ } ,
33
41
name : "Home"
34
42
} ,
35
43
{
Original file line number Diff line number Diff line change 15
15
</v-card-text >
16
16
<v-card-text v-if =" authModule === 'oidc'" >
17
17
<v-btn
18
- @click =" userStore. OIDCBrowserRedirect"
18
+ @click =" OIDCBrowserRedirect"
19
19
block
20
20
rounded =" xs"
21
21
size =" large"
@@ -49,6 +49,10 @@ export default {
49
49
};
50
50
},
51
51
methods: {
52
+ OIDCBrowserRedirect() {
53
+ localStorage .setItem (" next" , this .$route .query .next );
54
+ this .userStore .OIDCBrowserRedirect ();
55
+ },
52
56
OIDCAsyncRefresh() {
53
57
this .userStore
54
58
.OIDCAsyncRefresh ()
You can’t perform that action at this time.
0 commit comments