I have a GET REST endpoint:
router.get('/test/*', function(req, res) {
var test = req.originalUrl;
}
it doesn't return the full url when I have "#" sign in them:
ie:
/test/asf#23
I want "asf#23", but the above code gives me only "asf". Thoughts?
Edit: req.originalUrl, req.path, req.baseUrl, req.url all return the same thing. Any other ideas?
Edit 2: I have absolutely no control over the client, I simply need to print out the url the client tried to access. Is there a way do parse it?