Commit d71705f6 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 24474732
......@@ -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('user.page')->toString();
$this->drupalGet(Url::fromRoute('user.logout', [], ['query' => ['destination' => $destination]]));
$assert_session->fieldExists('name');
$assert_session->fieldExists('pass');
......
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