mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
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:
parent
a649863308
commit
2d04dd4cb9
1 changed files with 2 additions and 0 deletions
|
|
@ -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' || {}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue