Skip to content

Commit

Permalink
Readding code to fix issue d8-contrib-modules#12 that I removed by mi…
Browse files Browse the repository at this point in the history
…stake while resolving conflicts.
  • Loading branch information
Jose Moreira committed Sep 11, 2015
1 parent e517993 commit 9b47dba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/EventSubscriber/SecurePagesEventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ public function checkForHttp(GetResponseEvent $event) {
if(is_null($redirect)) {

}elseif($redirect == TRUE) {
//Unset destination parameter so this won't redirect in this request
$request->query->remove('destination');

$url = Url::fromUri($uri, array('absolute' => TRUE, 'https' => TRUE))->toString();
$event->setResponse(new TrustedRedirectResponse($url, 302));
}elseif($redirect == FALSE){
Expand Down

0 comments on commit 9b47dba

Please sign in to comment.