renamed getURL to getURLReplaceQueryParam