add beta redirect to main site until we get a new beta up

This commit is contained in:
Tyler Renelle 2013-07-15 21:52:00 -04:00
parent 8e922bb151
commit 2ec5a930a6

View file

@ -1,4 +1,8 @@
splash = (req, res, next) ->
return res.redirect("https://habitrpg.com")
isStatic = req.url.split('/')[1] is 'static'
unless req.query?.play? or req.getModel().get('_userId') or isStatic
res.redirect('/static/front')