If I navigate to the following Visualforce URL:
https://cs10.salesforce.com/apex/TestArea#Anchor
... I'd like to be able to isolate the Anchor value via Apex. I've tried both of these approaches, which the documentation suggests should work:
- Using System.URL:
URL.getCurrentRequestUrl().getRef() - Using ApexPages:
ApexPages.CurrentPage().getAnchor()
These both return blank/null values. What am I missing, and how do I get the anchor from the URL?