Reputation: 780
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.
Upvotes: 0
Views: 24
Reputation: 65126
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.
Upvotes: 2