Getting full url path in the middleware