Let's say I have this URL in the address bar:
Also I have an anchor that links to
<a id="lang" href="https://www.example.com/en.html">Change Language</a>
What I wanted to archive is to append to that anchor the #myhash tag but only if it's present in the current URL. If not, don't append anything.