Added getQueryParam method for extracting query params, refactored get url by alias