coalesce urls which use query params instead of ids