From 367da87a2e99bd332d0bed20f39a7120acb103bd Mon Sep 17 00:00:00 2001 From: Koala <330686+Koala@users.noreply.github.com> Date: Sun, 24 Sep 2023 12:05:51 +0200 Subject: [PATCH] =?UTF-8?q?URL=20ohne=20Pfadangabe=20f=C3=BChrt=20zum=2040?= =?UTF-8?q?4-Fehler?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bei einer Installation in einem Unterverzeichnis wird derzeit der Pfad dorthin ignoriert und es kommt zu einem 404-Fehler. Hiermit wird der Pfad hinzugefügt. --- assets/choice_status.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/choice_status.js b/assets/choice_status.js index 62e263f..2665348 100644 --- a/assets/choice_status.js +++ b/assets/choice_status.js @@ -35,7 +35,8 @@ function updateDatasetStatus($this, status, callback) { $('#rex-js-ajax-loader').addClass('rex-visible'); if (confirm('Ändern?')) { url = window.location.origin; - $.get(url + '/redaxo/index.php?page=content&rex-api-call=choice_status', { + path = window.location.pathname; + $.get(url + path + '?page=content&rex-api-call=choice_status', { data_id: $this.data('id'), table: $this.data('table'), field: $this.data('field'),