Skip to content

Commit

Permalink
Merge pull request #59 from NuCivic/fix-current-url-https-everywhere
Browse files Browse the repository at this point in the history
Fixes current url check when https everywhere is set.
  • Loading branch information
acouch authored Sep 6, 2016
2 parents f24ab28 + d5b842e commit d9f4b2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Drupal/DKANExtension/Context/RawDKANContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ public function assertOnUrl($assert_url, $session = null){
// Support relative paths when on a "base_url" page. Otherwise assume a full url.
$current_url = str_replace($this->getMinkParameter("base_url"), "", $current_url);

// Fix url when https everywhere is enabled
$current_url = preg_replace('/https:\/\/\w+/', '', $current_url);

// Remove hash part from url since it's widely used
// for client side routing and this can make some
// test fail.
Expand Down

0 comments on commit d9f4b2e

Please sign in to comment.