Node.js - Take URL parameter via Jade

Asked

Viewed 682 times

1

I have the following url http://localhost:3000/user/index/1, would like to get the last parameter. I tried with - var name = window.location.pathname; put in the file . jade and did not work, but if it is possible to make a redirect with sending parameters as in the .render().

1 answer

0


Solution:

notification: request.params.message 

This mode is in disuse:

notification: request.param('message','')

Browser other questions tagged

You are not signed in. Login or sign up in order to post.