This commit is contained in:
Jan Prochazka
2024-09-03 13:46:43 +02:00
parent eb56b6eab8
commit 7c04dc00b1
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ export default function resolveApi() {
if (apiUrl) {
return apiUrl;
}
return (window.location.origin + window.location.pathname).replace(/\/*$/, '');
return (window.location.origin + window.location.pathname).replace(/\/[a-zA-Z-]+\.html$/, '').replace(/\/*$/, '');
}
export function resolveApiHeaders() {