mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -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
|
viewArgs.push @courseInstanceID if @courseInstanceID
|
||||||
else if @level.get('type', true) is 'course-ladder'
|
else if @level.get('type', true) is 'course-ladder'
|
||||||
leagueID = @getQueryVariable 'league'
|
leagueID = @getQueryVariable 'league'
|
||||||
link = "/play/ladder/"+@level.get('slug')+"/course/"+leagueID
|
link = "/play/ladder/#{@level.get('slug')}"
|
||||||
Backbone.Mediator.publish 'router:navigate', {
|
link += "/course/#{leagueID}" if leagueID
|
||||||
route: link
|
Backbone.Mediator.publish 'router:navigate', route: link
|
||||||
}
|
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
viewClass = require 'views/play/CampaignView'
|
viewClass = require 'views/play/CampaignView'
|
||||||
|
|
Loading…
Reference in a new issue