1
0
mirror of https://github.com/flarum/core.git synced 2025-08-17 22:01:44 +02:00

Preserve return URL when confirming logout

This commit is contained in:
Toby Zerner
2017-11-29 13:47:00 +10:30
parent ea2fc1ff8a
commit ba769e0c7e
2 changed files with 3 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
<p>{{ $translator->trans('core.views.log_out.log_out_confirmation', ['{forum}' => $forumTitle]) }}</p>
<p>
<a href="{{ $url->toRoute('logout') }}?token={{ $csrfToken }}" class="button">
<a href="{{ $url->toRoute('logout') }}?token={{ $csrfToken }}@if ($return)&return={{ urlencode($return) }}@endif" class="button">
{{ $translator->trans('core.views.log_out.log_out_button') }}
</a>
</p>