Adds function to retrieve request URL