Fixing url parsing for opening the page with an open mail