node.js - How to get current url path in express with ejs - Stack Overflow

PHOTO EMBED

Sun Jun 14 2020 18:07:51 GMT+0000 (Coordinated Universal Time)

Saved by @mishka #javascript #express

var fullUrl = req.protocol + '://' + req.get('host') + req.originalUrl;
content_copyCOPY

https://stackoverflow.com/questions/42943124/how-to-get-current-url-path-in-express-with-ejs/42943283