0

I am developing an Laravel 5.2 and I wondering if I can catch an anchor present on the url like:

http://www.domain.com/public/folder/5#anchor_name

I need to read this from url to collapse or not a Toggle Panel. Do you think is this possible?

I know I can do this from javascript, but I need to know if I can manage this from the controller.

Community
  • 1
  • 1
Programador Adagal
  • 780
  • 14
  • 39

1 Answers1

2

No, you can't. The anchor part isn't sent to the server by the browser in the first place, so the server can't see it. You'll have to use JavaScript.

Matti Virkkunen
  • 63,558
  • 9
  • 127
  • 159