# How to get url fragment in controller?

**URL:** https://forum.shopware.com/t/how-to-get-url-fragment-in-controller/70042
**Category:** International (English Only)
**Created:** [5. Oktober 2020 um 14:53 UTC](https://forum.shopware.com/t/how-to-get-url-fragment-in-controller/70042 "2020-10-05T14:53:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)
#### Post date: [5. Oktober 2020 um 14:53 UTC](https://forum.shopware.com/t/how-to-get-url-fragment-in-controller/70042/1 "2020-10-05T14:53:43Z")

</div>

[url.com/controller/action#param1=x&param2=y](http://url.com/controller/action#param1=x&param2=y) Imagine such a url, when the request comes to a controller.

How to access the anchor parameters in controller’s action ?

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [5. Oktober 2020 um 18:01 UTC](https://forum.shopware.com/t/how-to-get-url-fragment-in-controller/70042/2 "2020-10-05T18:01:47Z")

</div>

As far as I understand the concept of urls,&nbsp;the part behind the „#“ is only client&nbsp;side and not server side. So you can acces it with javascript in the Storefront, but not in PHP, since the server only gets the url /action.

[www.url.de](http://www.url.de)? **serverside** # **clientside**

---

<div class="post-metadata">

### Author: ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)
#### Post date: [5. Oktober 2020 um 18:08 UTC](https://forum.shopware.com/t/how-to-get-url-fragment-in-controller/70042/3 "2020-10-05T18:08:02Z")

</div>

Yes, I was also sure about that, but was interested in whether there are any bypass methods.
