diff --git a/src/EventSubscriber/ProtectedPagesSubscriber.php b/src/EventSubscriber/ProtectedPagesSubscriber.php
index ef20a19..e57bd8e 100644
--- a/src/EventSubscriber/ProtectedPagesSubscriber.php
+++ b/src/EventSubscriber/ProtectedPagesSubscriber.php
@@ -149,6 +149,9 @@ class ProtectedPagesSubscriber implements EventSubscriberInterface {
     $query = \Drupal::destination()->getAsArray();
     $query['protected_page'] = $pid;
     $this->pageCacheKillSwitch->trigger();
+    $url = parse_url($query['destination']);
+    $query['destination'] = $url['path'];
+    
     $response = new RedirectResponse(Url::fromUri('internal:/protected-page', ['query' => $query])->toString());
     $response->send();
   }
