#42, support for stages in client router and LessonMenuService

This commit is contained in:
Jason White
2015-08-22 21:13:03 -04:00
parent 9b4c97e468
commit 7c16319c34
5 changed files with 12 additions and 10 deletions

View File

@ -567,6 +567,7 @@ public abstract class AbstractLesson extends Screen implements Comparable<Object
link.append(getScreenId());
link.append("/");
link.append(getCategory().getRanking());
return link.toString();
}

View File

@ -113,7 +113,7 @@ public class LessonMenuService extends BaseService {
LessonMenuItem stageItem = new LessonMenuItem();
stageItem.setName("Stage " + stageIdx + ": " + stage);
// build the link for the stage
String stageLink = lessonLink + "&stage=" + stageIdx;
String stageLink = lessonLink + "/" + stageIdx;
stageItem.setLink(stageLink);
stageItem.setType(LessonMenuItemType.STAGE);
if (rla.isStageComplete(ws, stage)) {