Fix issue returning to ladder when playing course-ladder levels outside of a course arena

This commit is contained in:
Nick Winter 2015-11-24 08:36:57 -08:00
parent 65890130bb
commit d675e14f59

View file

@ -444,10 +444,9 @@ module.exports = class HeroVictoryModal extends ModalView
viewArgs.push @courseInstanceID if @courseInstanceID
else if @level.get('type', true) is 'course-ladder'
leagueID = @getQueryVariable 'league'
link = "/play/ladder/"+@level.get('slug')+"/course/"+leagueID
Backbone.Mediator.publish 'router:navigate', {
route: link
}
link = "/play/ladder/#{@level.get('slug')}"
link += "/course/#{leagueID}" if leagueID
Backbone.Mediator.publish 'router:navigate', route: link
return
else
viewClass = require 'views/play/CampaignView'