Always specify a ref parameter, but only override if some parts of the query were overwritten by the shortener (REC-232)