mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #1064 from sharelatex/as-fix-500-on-teams
Fix 500 on /teams route GitOrigin-RevId: 9f554f9b77fb7fea64db1ad9c4d8635f47efff9e
This commit is contained in:
parent
27475bd980
commit
27fd090075
1 changed files with 3 additions and 1 deletions
|
@ -340,8 +340,10 @@ module.exports = class Router
|
|||
# Otherwise show some information about teams
|
||||
if AuthenticationController.isUserLoggedIn(req)
|
||||
res.redirect('/user/subscription')
|
||||
else if Settings.overleaf?.host
|
||||
res.redirect("#{Settings.overleaf.host}/teams")
|
||||
else
|
||||
res.redirect("#{settings.overleaf.host}/teams")
|
||||
next()
|
||||
|
||||
webRouter.get '/chrome', (req, res, next) ->
|
||||
# Match v1 behaviour - this is used for a Chrome web app
|
||||
|
|
Loading…
Reference in a new issue