I have a url http://127.0.0.1:8000/medicine_alternatives/?id=Avinim%20Plus%20(100%20&%20500)
For clarity ,the parameter without applying encoding is id=Avinim Plus (100 & 500)
At server I am retreiving the parameter as follows:
app.get('/medicine_alternatives', function (req, res) {
console.log('id='+req.query.id);
});
I am getting id=Avinim Plus (100
in the console .It seems that it is treating everything after &
as different parameter.
How do I get the whole string Avinim Plus (100 & 500)
?