how to get request path with express req object October 11, 2022 by Tarik After having a bit of a play myself, you should use: console.log(req.originalUrl)