File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ const redirectToLogin = () => {
3838
3939const appElement = document . getElementById ( 'vue-app' ) ;
4040const apiToken = appElement ?. dataset . apiToken ;
41- const apiBaseUrl = appElement ?. dataset . apiBaseUrl ;
41+ const apiElement = document . getElementById ( 'api-config' ) ;
42+ const apiBaseUrl = apiElement ?. dataset . apiBaseUrl ;
4243
4344if ( ! apiBaseUrl ) {
4445 console . error ( 'API Base URL is not configured.' ) ;
Original file line number Diff line number Diff line change 44 <meta charset =" UTF-8" >
55 <title >{% block title %}phpList{% endblock %}</title >
66 <meta name =" viewport" content =" width=device-width, initial-scale=1" >
7+ <meta id =" api-config" data-api-base-url =" {{ api_base_url }}" >
78 <link rel =" stylesheet" href =" {{ asset(' build/app.css' , ' phplist_web_frontend' ) }}" >
89 <link rel =" stylesheet" href =" {{ asset(' build/styles.css' , ' phplist_web_frontend' ) }}" >
910
Original file line number Diff line number Diff line change 55{% block body %}
66 <div id =" vue-app"
77 data-api-token =" {{ app .session .get (' auth_token' )| default (' ' ) }}"
8- data-api-base-url =" {{ api_base_url | default (' ' ) }}"
98 data-dashboard-stats =" {{ dashboard_stats | default ({})| json_encode | e (' html_attr' ) }}"
109 data-dashboard-error =" {{ dashboard_error | default (' ' )| e (' html_attr' ) }}"
1110 data-bounce-actions =" {{ bounce_actions | default ({})| json_encode | e (' html_attr' ) }}" >
You can’t perform that action at this time.
0 commit comments