mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Fix issue returning to ladder when playing course-ladder levels outside of a course arena
This commit is contained in:
parent
65890130bb
commit
d675e14f59
1 changed files with 3 additions and 4 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue