'res.location(path)' does not do anything? (Express)
问题 I have been searching around for answers on Stack Overflow ; non have worked... Why does res.location(path) not work? My Location-header does not change. Normal rendering works fine. I could add, that in the final code, I want to render the page. So, I want to replace res.end() with res.render('app', {...}) and use handlebars.js for rendering. Code that does not work as expected : app.get('/sub-link/:wildcard', (req, res) => { res.location('/new-header'); res.end(); }); I have been reading