function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
System Administrator 224System Administrator 224 

Anchor not preserved from button

We are able to use an Anchor within a Visualforce page OK, but when we use the anchor from a URL associated with a button on a standard object page - such as Case - the Anchor is not used, the page is always displayed from the top. This only seems to happen with new orgs, older ones correctly handle the Anchor either way.
Hargobind_SinghHargobind_Singh
Hi, can you give more details of what anchor are you using, are you trying to use an anchor on the salesforce standard page ?
 
System Administrator 224System Administrator 224
say I have a custom visual force page "test.page" which has anchors A, B and C. I want to create a button on Contact standard object and click on it to go to test page anchor B. Here is the button definition:
Label: Go to Anchor B
Object Name: Contact
Name: Test_Button
Link Encoding Unicode:  UTF-8
Behavior:  Display in existing window with sidebar
Display Type:  Detail Page Button
Button or Link URL:  /apex/test#B

After I put the button on page layout and click on it, the anchor information is missing in browser location bar and the page is displayed from the top.