API url fix

This commit is contained in:
Jan Prochazka 2022-12-06 19:55:18 +01:00
parent a2884a580f
commit 4d74626e7f

View File

@ -9,7 +9,7 @@ export default function resolveApi() {
if (apiUrl) {
return apiUrl;
}
return window.location.href.replace(/\/*$/, '');
return (window.location.origin + window.location.pathname).replace(/\/*$/, '');
}
export function resolveApiHeaders() {