tweaked how query string params are merged into link