node.js - How to reload current page in Express.js? -


i'm current in /id/1234 page, , click post /add button, after want reload /id/1234 in experss.js:res.redirect(**how /id/1234 dynamicly, since in /id/1235, /id/1236 page same post /add action?**)

thanks.

i'd add in version 4.x of express can use

res.redirect('back'); 

to automatically redirect page request came from. equivilant of

res.redirect(req.get('referer')); 

that mentioned in peter lyons answer

see also: http://expressjs.com/api.html#res.redirect


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -