Correctly set url for context in window.open.