Quellcode durchsuchen

Use correct setting

Alasdair Smith vor 8 Jahren
Ursprung
Commit
c2ecccfa02
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      services/web/app/coffee/router.coffee

+ 2 - 2
services/web/app/coffee/router.coffee

@@ -334,7 +334,7 @@ module.exports = class Router
 		# unsupported by RedirectManager. Therefore we redirect GETs with
 		# unsupported by RedirectManager. Therefore we redirect GETs with
 		# RedirectManager and POSTs with this custom route
 		# RedirectManager and POSTs with this custom route
 		publicApiRouter.post '/docs', (req, res, next) ->
 		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) ->
 		webRouter.get '/teams', (req, res, next) ->
 			# Match v1 behaviour - if the user is signed in, show their teams list
 			# 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)
 			if AuthenticationController.isUserLoggedIn(req)
 				res.redirect('/user/subscription')
 				res.redirect('/user/subscription')
 			else
 			else
-				res.redirect("#{settings.apis.v1.url}/teams")
+				res.redirect("#{settings.overleaf.host}/teams")
 
 
 		webRouter.get '/chrome', (req, res, next) ->
 		webRouter.get '/chrome', (req, res, next) ->
 			# Match v1 behaviour - this is used for a Chrome web app
 			# Match v1 behaviour - this is used for a Chrome web app