function redirect (req, res) {
  const path = req.params.path || ''
  const url = config.settingsUrl + (path ? '/' + path : '')
  res.redirect(url)
}