changed the fetch in js to be relative (no explicite url; just a path); removed version from docker compose

This commit is contained in:
Marcel Gansfusz
2025-11-04 14:55:04 +01:00
parent c3a87ceee6
commit d42bab5b19
3 changed files with 3 additions and 4 deletions

View File

@@ -295,7 +295,7 @@ async function submitForm(formData) {
upload_status.innerText =
"Censoring Page " + data.page + "/" + data.pages;
});
const response = await fetch(window.location + "submit", {
const response = await fetch("/submit/", {
method: "POST",
body: formData,
});
@@ -338,7 +338,7 @@ function uploadPdf(eve) {
}
async function uploadFile(formData) {
try {
const response = await fetch(window.location + "uploadfile", {
const response = await fetch("/uploadfile/", {
method: "POST",
body: formData,
});

View File

@@ -1,4 +1,4 @@
var url = window.location + "search/";
var url = "/search/";
var lid = null;
var pid = null;
var activeAutocompletion = null;