Skip to content

Commit

Permalink
Fix /?hour_of_code=true redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixeliot committed Nov 7, 2017
1 parent 77f9f04 commit a872f8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/core/Router.coffee
Expand Up @@ -23,6 +23,7 @@ module.exports = class CocoRouter extends Backbone.Router
if window.serverConfig.picoCTF
return @routeDirectly 'play/CampaignView', ['picoctf'], {}
if utils.getQueryVariable 'hour_of_code'
delete window.alreadyLoadedView
return @navigate "/play?hour_of_code=true", {trigger: true, replace: true}
unless me.isAnonymous() or me.isStudent() or me.isTeacher() or me.isAdmin() or me.hasSubscription()
delete window.alreadyLoadedView
Expand Down

0 comments on commit a872f8a

Please sign in to comment.