Fixed bug with url with parameters introduced in previous commit