1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

Preserve return URL when confirming logout

This commit is contained in:
Toby Zerner
2017-11-29 13:47:00 +10:30
parent 21c9eae502
commit 034ee27522
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>