Skip to content

Commit

Permalink
Fixed alias subscriber not stopping propagation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Skrypnyk committed Dec 6, 2019
1 parent b4f353e commit ad15590
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/EventSubscriber/AliasSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public function onRequestSetController(GetResponseEvent $event) {
if ($asset) {
$request->attributes->set('_controller', '\Drupal\minisite\Controller\AliasController::deliverAsset');
$request->attributes->set('asset_id', $asset->id());
// Stop further propagation as our raw URL has matched.
$event->stopPropagation();
}
}

Expand Down

0 comments on commit ad15590

Please sign in to comment.