From 081fe8f042fccd35e168399db2c3f8935d86be6e Mon Sep 17 00:00:00 2001
From: xgui3783 <xgui3783@gmail.com>
Date: Fri, 25 Feb 2022 11:41:04 +0100
Subject: [PATCH] fix typo

---
 deploy/app.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/deploy/app.js b/deploy/app.js
index b8174d8cb..7b48f151d 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
-- 
GitLab