File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 66*/
77
88function change_toggle_option ( url ) {
9- window . location . pathname = url ;
9+ window . location . pathname = checkHtmlPath ( ) + url ;
1010}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ async function log_user_in() {
2828 if ( response . ok ) {
2929 console . log ( "Login successful:" , response ) ;
3030 // window.location.pathname = window.constants.dashboard_page;
31- window . location . pathname = dashboard ;
31+ window . location . pathname = checkHtmlPath ( ) + dashboard ;
3232 } else {
3333 update_error_message ( "Login failed: " + response . message ) ;
3434 }
@@ -49,7 +49,7 @@ async function log_user_in_professional() {
4949 if ( response . ok ) {
5050 console . log ( "Login successful:" , response ) ;
5151 // window.location.pathname = window.constants.dashboard_page;
52- window . location . pathname = suivi ;
52+ window . location . pathname = checkHtmlPath ( ) + suivi ;
5353 } else {
5454 update_error_message ( "Login failed: " + response . message ) ;
5555 }
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ async function register_user() {
3737 if ( response . ok ) {
3838 console . log ( "Registration successful:" , response ) ;
3939 // window.location.pathname = window.constants.dashboard_page;
40- window . location . pathname = dashboard ;
40+ window . location . pathname = checkHtmlPath ( ) + dashboard ;
4141 } else {
4242 update_error_message ( "Registration failed: " + response . message ) ;
4343 }
@@ -66,7 +66,7 @@ async function register_user_professional() {
6666 if ( response . ok ) {
6767 console . log ( "Registration successful:" , response ) ;
6868 // window.location.pathname = window.constants.dashboard_page;
69- window . location . pathname = suivi ;
69+ window . location . pathname = checkHtmlPath ( ) + suivi ;
7070 } else {
7171 update_error_message ( "Registration failed: " + response . message ) ;
7272 }
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ async function get_sso_details() {
2020 if ( response . ok ) {
2121 console . log ( "Registration successful:" , response ) ;
2222 window . cookie_manager . create ( user_username_cookie_name , username ) ;
23- window . location . pathname = window . constants . dashboard_page ;
23+ window . location . pathname = checkHtmlPath ( ) + window . constants . dashboard_page ;
2424 } else {
2525 update_error_message ( "Registration failed: " + response . message ) ;
26- window . location . pathname = window . constants . home_page ;
26+ window . location . pathname = checkHtmlPath ( ) + window . constants . home_page ;
2727 }
2828} ;
2929
You can’t perform that action at this time.
0 commit comments