From c2ecccfa02d5fffbc6f5f943b5948c20528662ad Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Wed, 26 Sep 2018 17:35:51 +0100 Subject: [PATCH] Use correct setting --- services/web/app/coffee/router.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/app/coffee/router.coffee b/services/web/app/coffee/router.coffee index 1e30460193..2c7e7ec8b2 100644 --- a/services/web/app/coffee/router.coffee +++ b/services/web/app/coffee/router.coffee @@ -334,7 +334,7 @@ module.exports = class Router # unsupported by RedirectManager. Therefore we redirect GETs with # RedirectManager and POSTs with this custom route publicApiRouter.post '/docs', (req, res, next) -> - res.redirect(307, "#{Settings.apis.v1.url}/docs") + res.redirect(307, "#{Settings.overleaf.host}/docs") webRouter.get '/teams', (req, res, next) -> # Match v1 behaviour - if the user is signed in, show their teams list @@ -342,7 +342,7 @@ module.exports = class Router if AuthenticationController.isUserLoggedIn(req) res.redirect('/user/subscription') else - res.redirect("#{settings.apis.v1.url}/teams") + res.redirect("#{settings.overleaf.host}/teams") webRouter.get '/chrome', (req, res, next) -> # Match v1 behaviour - this is used for a Chrome web app