I want to return a URL with a location hash in a page reference, but it appears that the system strips it out. Anybody know of a way to make this work without resorting to javascript? I can think of some ways to do it like that but I'd rather stick with standard functionality if possible.
This code:
ApexPages.PageReference pr = new ApexPages.PageReference('/apex/APage#' + obj.Get('Id'));
pr.SetRedirect(true);
return pr;
Results in this URL in the browser:
<<instance>>/apex/APage