redirects work properly

This commit is contained in:
Simon Martens
2025-05-26 22:40:21 +02:00
parent 24b56ff97f
commit 3367e66cec
2 changed files with 95 additions and 22 deletions

View File

@@ -69,9 +69,11 @@
id="csrf_token"
required
value="{{ $model.csrf_token }}" />
<!-- INFO: we dont use request.fullpath here, since this can be /logout /activate
or /deactivate, which would not work with the redirectTo query param -->
<button
formmethod="GET"
formaction="/user/{{ $u.Id }}/edit?redirectTo={{ $model.request.fullpath }}">
formaction="/user/{{ $u.Id }}/edit?redirectTo=/user/management">
<i class="ri-pencil-line"></i>
</button>
<button