After having a bit of a play myself, you should use:
console.log(req.originalUrl)
More Related Contents:
- Writing to files in Node.js
- Download a file from NodeJS Server using Express
- Make Axios send cookies in its requests automatically
- How to enable cors nodejs with express?
- Start script missing error when running npm start
- HTTP GET Request in Node.js Express
- Failed to load c++ bson extension
- How to search in array of object in mongodb
- Pass variables to JavaScript in ExpressJS
- Passing variables to the next middleware using next() in Express.js
- How do I ungzip (decompress) a NodeJS request’s module gzip response body?
- socket.io.js not found
- Handling errors in express async middleware
- MongoDB select where in array of _id?
- res.download() not working in my case
- Difference between readFile() and readFileSync()
- How do I get the domain originating the request in express.js?
- Running an Express server middleware alongside Nuxt
- What are express.json() and express.urlencoded()?
- Listen on HTTP and HTTPS for a single express app
- Read json file content with require vs fs.readFile
- Node.js POST causes [Error: socket hang up] code: ‘ECONNRESET’
- stop all instances of node.js server
- Handlebars: Access has been denied to resolve the property “from” because it is not an “own property” of its parent
- require(‘babel/register’) doesn’t work
- Express: Setting content-type based on path/file?
- How to generate unique ID with node.js
- NodeJS: How to get the server’s port?
- How can I use webpack with express?
- How can I easily get access to form data in Express js?