Fix #2469: Changed Window.open to ignore slashes in parameters.

Changed the URL handling code which converts a relative path to a full path to ignore everything behind "#" as this is  an anchor and should not be treated as a path as well as parameters starting with "?"