mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-02 16:21:01 -04:00
Add CourseInstance ID to back-to-ladder link
This commit is contained in:
parent
15038026e2
commit
e29fe7e761
1 changed files with 2 additions and 2 deletions
|
@ -89,10 +89,10 @@ module.exports = class ControlBarView extends CocoView
|
|||
@homeViewClass = "views/courses/TeacherCoursesView"
|
||||
else if @level.isType('ladder', 'ladder-tutorial', 'hero-ladder', 'course-ladder')
|
||||
levelID = @level.get('slug')?.replace(/\-tutorial$/, '') or @level.id
|
||||
@homeLink = '/play/ladder/' + levelID
|
||||
@homeLink = "/play/ladder/#{levelID}"
|
||||
@homeViewClass = 'views/ladder/LadderView'
|
||||
@homeViewArgs.push levelID
|
||||
if leagueID = @getQueryVariable 'league'
|
||||
if leagueID = @getQueryVariable('league') or @getQueryVariable('course-instance')
|
||||
leagueType = if @level.isType('course-ladder') then 'course' else 'clan'
|
||||
@homeViewArgs.push leagueType
|
||||
@homeViewArgs.push leagueID
|
||||
|
|
Loading…
Add table
Reference in a new issue