Dealing with slash characters in request parameter using Express route
问题 I'm currently working on a URL shortener app using Express. I want the user to be able to enter a URL like this: https://www.exampleurlshortener.com/new/https://www.google.com The problem is whenever I try to specify the parameter using Express it will only extract the 'https:' section and everything after that is lost because the 2 backslashes are registering as a new route: app.get('/new/:url', (req, res) => { console.log(req.params.url) // outputs 'https:' I thought about specifying each