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