Commit 859df066 authored by catch's avatar catch
Browse files

Issue #3124769 by Chi, msuthars: Fix hardcoded destination in UiHelperTrait::drupalLogout()

(cherry picked from commit 576652b6)
parent e96b8de8
......@@ -267,7 +267,8 @@ protected function drupalLogout() {
// idea being if you were properly logged out you should be seeing a login
// screen.
$assert_session = $this->assertSession();
$this->drupalGet(Url::fromRoute('user.logout', [], ['query' => ['destination' => 'user']]));
$destination = Url::fromRoute('')->toString();
$this->drupalGet(Url::fromRoute('user.logout', [], ['query' => ['destination' => $destination]]));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment