Skip to content

Commit

Permalink
URL ohne Pfadangabe führt zum 404-Fehler
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Koala authored Sep 24, 2023
1 parent c40055f commit 367da87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/choice_status.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 367da87

Please sign in to comment.