should use req.originalUrl for express requestUrl #472
Labels
api: logging
Issues related to the googleapis/nodejs-logging API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Currently
requestUrl
request data in middleware is usingreq.url
variable. In express,req.url
only returns sub-route.There are many cases that we use nested routes in express for modularization. It is better to use
req.originalUrl
for getting full path.https://expressjs.com/en/api.html#req.originalUrl
I am ready to make PR. However, I need to verify that this feature can be doable or not.
Thanks
The text was updated successfully, but these errors were encountered: