File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -283,6 +283,7 @@ const authSetup = function () {
283283 function correctOldUrl ( ) {
284284 const pattern = '#!/member' ;
285285 const sso_pattern = '/#!/sso-login' ;
286+ const logout_pattern = '/#!/logout?' ;
286287
287288 if ( window . location . href . indexOf ( pattern ) > - 1 ) {
288289 window . location . href = window . location . href . replace ( pattern , '' ) ;
@@ -291,6 +292,10 @@ const authSetup = function () {
291292 if ( window . location . href . indexOf ( sso_pattern ) > - 1 ) {
292293 window . location . href = window . location . href . replace ( sso_pattern , '' ) ;
293294 }
295+
296+ if ( window . location . href . indexOf ( logout_pattern ) > - 1 ) {
297+ window . location . href = window . location . href . replace ( logout_pattern , '/?logout=true&' ) ;
298+ }
294299 }
295300
296301 init ( ) ;
You can’t perform that action at this time.
0 commit comments