pe-ap: fixed samed page link behaviour in Firefox

Using the back button after clicking a same page link now returns
scroll position to the original position of the same page link.
Merge pull request #2073 from patheard/firefox-named-anchor

pe-ap: fixed samed page link behaviour in Firefox