Function name says `getProcessedRequest` but you are modifying the given request by processing and modifying the url value.