Skip to content

Commit

Permalink
Add 301 status code to redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
coldfire84 committed Jan 25, 2020
1 parent a0e8c02 commit e98d01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ router.get('/docs', defaultLimiter, async (req, res) => {
sendPageView(req.path, 'Documentation', req.ip, req.headers['user-agent']);
//outputSessionID(req, "/docs");
//res.render('pages/docs', {user: req.user, docs: true, brand: process.env.BRAND, title: "Documentation | " + process.env.BRAND});
res.redirect('https://docs.cb-net.co.uk');
res.status(301).redirect('https://docs.cb-net.co.uk');
});
///////////////////////////////////////////////////////////////////////////
// About
Expand Down

0 comments on commit e98d01d

Please sign in to comment.