How would you add # in the URL via passing from PageReference? I have tried few different way but that does not work.
public PageReference clickOnName()
{
PageReference newPage = Page.NewEmployee;
newPage.getParameters().put('empId', empId + '#menu');
return newPage.setRedirect(true);
}
The above URL will be something:
http://xxxxx.visual.force.com/apex/NewEmployee?id=ABC%23menu
Instead I want:
http://xxxxx.visual.force.com/apex/NewEmployee?id=ABC#menu