summaryrefslogtreecommitdiff
path: root/src/com/p4square/grow/frontend/ChapterCompletePage.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/p4square/grow/frontend/ChapterCompletePage.java')
-rw-r--r--src/com/p4square/grow/frontend/ChapterCompletePage.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/p4square/grow/frontend/ChapterCompletePage.java b/src/com/p4square/grow/frontend/ChapterCompletePage.java
index 671e45e..2f981ae 100644
--- a/src/com/p4square/grow/frontend/ChapterCompletePage.java
+++ b/src/com/p4square/grow/frontend/ChapterCompletePage.java
@@ -102,6 +102,14 @@ public class ChapterCompletePage extends FreeMarkerPageResource {
}
}
+ // Skip the chapter complete message for "Introduction"
+ if ("introduction".equals(mChapter)) {
+ String nextPage = mConfig.getString("dynamicRoot", "");
+ nextPage += "/account/training/" + nextChapter;
+ getResponse().redirectSeeOther(nextPage);
+ return new StringRepresentation("Redirecting to " + nextPage);
+ }
+
root.put("stage", mChapter);
root.put("nextstage", nextChapter);
return new TemplateRepresentation(t, root, MediaType.TEXT_HTML);