when redirecting to /?play=1, we get access-denied for
model.session.userId for some reason. seems user initialization happens during that process, so we just do another page refresh and we're good
This commit is contained in:
@@ -24,6 +24,8 @@ _ = require('underscore')
|
||||
# ========== ROUTES ==========
|
||||
|
||||
get '/', (page, model, next) ->
|
||||
return page.redirect '/' if page.params?.query?.play?
|
||||
|
||||
# temporary view variables, so we don't call model.set() too fast
|
||||
_view = model.get '_view' || {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user