# Redirects in Shopware 6

**URL:** <https://forum.shopware.com/t/redirects-in-shopware-6/72900>\
**Category:** Programmierung\
**Created:** [19. Februar 2021 um 11:02 UTC](https://forum.shopware.com/t/redirects-in-shopware-6/72900 "2021-02-19T11:02:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ABC9](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@ABC9](https://forum.shopware.com/u/ABC9)\
**Post date:** [19. Februar 2021 um 11:02 UTC](https://forum.shopware.com/t/redirects-in-shopware-6/72900/1 "2021-02-19T11:02:32Z")

</div>

Hi,

wie kann ich am besten im&nbsp;KernelEvents::REQUEST mir den SalesChannelContext holen? Möchte gerne etwas vorher prüfen mit dem SalesChannelContext und anschließend eine Weiterleitung vornehmen und das alles bevor die eigentliche Route ausgeführt wird.

---

<div class="post-metadata">

**Author:** ![ABC9](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@ABC9](https://forum.shopware.com/u/ABC9)\
**Post date:** [19. Februar 2021 um 13:16 UTC](https://forum.shopware.com/t/redirects-in-shopware-6/72900/2 "2021-02-19T13:16:13Z")

</div>

ich glaube ich habe mir es selbst beantwortet ich nehme einfach das KernelEvents::CONTROLLER und werfe einfach ne Exception und prüfe dann auf diese Exception in einem anderem Event ab und redirecte entsprechend um…, da ich im CONTROLLER Event den SalesChannelContext habe
