diff --git a/deploy/app.js b/deploy/app.js index b8174d8cbaa145b386bb3bbb8da80258729e29a2..7b48f151dcd9e9e9fc8d9595b37eab27d00e02b4 100644 --- a/deploy/app.js +++ b/deploy/app.js @@ -106,7 +106,7 @@ const _ = (async () => { const HOST_PATHNAME = process.env.HOST_PATHNAME || '' for (const route of vipRoutes) { - app.get(route, (req, res) => res.redirect(`${HOST_PATHNAME}/go/${route}`)) + app.get(`/${route}`, (req, res) => res.redirect(`${HOST_PATHNAME}/go/${route}`)) } })() @@ -234,4 +234,4 @@ app.use('/plugins', jsonMiddleware, pluginRouter) const catchError = require('./catchError') app.use(catchError) -module.exports = app \ No newline at end of file +module.exports = app