fix error with opening url with # parameters