Dealing with duplicated parameters in the URL