Ensure the URL given to window.open() is absolute (Closes #1545).