1
0
mirror of https://github.com/flarum/core.git synced 2025-08-23 08:33:45 +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

@@ -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());
}