Commit 576652b6 authored by catch's avatar catch
Browse files

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

parent d4a14f63
...@@ -267,7 +267,8 @@ protected function drupalLogout() { ...@@ -267,7 +267,8 @@ protected function drupalLogout() {
// idea being if you were properly logged out you should be seeing a login // idea being if you were properly logged out you should be seeing a login
// screen. // screen.
$assert_session = $this->assertSession(); $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('name');
$assert_session->fieldExists('pass'); $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