Added getRequestedUrl method
suggested changes. Taken into account default params