File tree 1 file changed +10
-3
lines changed
auth-providers-common/templates
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 97
97
line-height : 1.25rem ;
98
98
font-weight : 500 ;
99
99
cursor : pointer;
100
+ width : 100% ;
100
101
}
101
102
102
103
button : hover {
196
197
}
197
198
}
198
199
</ style >
200
+ < script >
201
+ document . addEventListener ( 'DOMContentLoaded' , function ( ) {
202
+ document . getElementById ( 'back-btn' ) . addEventListener ( 'click' , function ( ) {
203
+ const preAuthUrl = localStorage . getItem ( 'preAuthRedirect' ) ;
204
+ window . location . href = preAuthUrl ;
205
+ } ) ;
206
+ } ) ;
207
+ </ script >
199
208
</ head >
200
209
< body >
201
210
< section class ="centered ">
@@ -227,9 +236,7 @@ <h1 class="status-title">{{.Title}}</h1>
227
236
{{ if .Redirect }}
228
237
< div class ="columns ">
229
238
< div class ="column ">
230
- < form method ="GET " action ="{{.Redirect}} ">
231
- < button type ="submit " class ="primary "> Go Back</ button >
232
- </ form >
239
+ < button id ="back-btn " class ="primary "> Go Back</ button >
233
240
</ div >
234
241
</ div >
235
242
{{ end }}
You can’t perform that action at this time.
0 commit comments