CON-1809 | Fix overlapping of anchored element

This function should be put to other module for history management. Did you try any 3rd party open source projects like:
https://github.com/browserstate/history.js
https://github.com/blixt/js-hash
etc.
???