Factorize the creation of quickview url