08 June 2018 09:00
JAVASCRIPT - URL - Javascript: document.url without the anchor (hash) portion - Stack Overflow
Specifying the first element worked for me: window.location=document.location.href.match(/(^[^#]*)/)[0]
1
(1 marks)