diff --git a/framework/core/src/Forum/Controller/LogOutController.php b/framework/core/src/Forum/Controller/LogOutController.php index 4dbb891cf..35bd09af3 100644 --- a/framework/core/src/Forum/Controller/LogOutController.php +++ b/framework/core/src/Forum/Controller/LogOutController.php @@ -107,7 +107,8 @@ class LogOutController implements ControllerInterface if (array_get($request->getQueryParams(), 'token') !== $csrfToken) { $view = $this->view->make('flarum.forum::log-out') ->with('csrfToken', $csrfToken) - ->with('forumTitle', $this->settings->get('forum_title')); + ->with('forumTitle', $this->settings->get('forum_title')) + ->with('return', array_get($request->getQueryParams(), 'return')); return new HtmlResponse($view->render()); } diff --git a/framework/core/views/log-out.blade.php b/framework/core/views/log-out.blade.php index 5f777dda3..988beeeef 100644 --- a/framework/core/views/log-out.blade.php +++ b/framework/core/views/log-out.blade.php @@ -7,7 +7,7 @@
{{ $translator->trans('core.views.log_out.log_out_confirmation', ['{forum}' => $forumTitle]) }}
- + {{ $translator->trans('core.views.log_out.log_out_button') }}