BUGFIX: error occurred when the url includes a # sign