Skip to content

Commit cd91dc8

Browse files
committed
Fixed wrong path for event log datatables, when accessing via a prefixed reverse proxy
1 parent bcaf96e commit cd91dc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/components/datatables.macro.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% macro datatable(datatable, controller = 'elements/datatables/datatables', state_save_tag = null) %}
2-
<div {{ stimulus_controller(controller, {"stateSaveTag": state_save_tag}) }} data-dt-settings='{{ datatable_settings(datatable)|escape('html_attr') }}' data-dt-url="{{ app.request.requestUri }}">
2+
<div {{ stimulus_controller(controller, {"stateSaveTag": state_save_tag}) }} data-dt-settings='{{ datatable_settings(datatable)|escape('html_attr') }}' data-dt-url="{{ app.request.baseUrl ~ app.request.requestUri }}">
33
<div {{ stimulus_target(controller, 'dt') }}>
44
<div class="card-body">
55
<div class="card">
@@ -25,7 +25,7 @@
2525
data-delete-message="{% trans %}part_list.action.delete-message{% endtrans %}">
2626
<input type="hidden" name="_token" value="{{ csrf_token('table_action') }}">
2727

28-
<input type="hidden" name="redirect_back" value="{{ app.request.requestUri }}">
28+
<input type="hidden" name="redirect_back" value="{{ app.request.baseUrl ~ app.request.requestUri }}">
2929

3030
<input type="hidden" name="ids" {{ stimulus_target('elements/datatables/parts', 'selectIDs') }} value="">
3131

0 commit comments

Comments
 (0)