summaryrefslogtreecommitdiff
path: root/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/com')
-rw-r--r--src/com/p4square/grow/frontend/TrainingPageResource.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/p4square/grow/frontend/TrainingPageResource.java b/src/com/p4square/grow/frontend/TrainingPageResource.java
index c6c86c3..61dcce0 100644
--- a/src/com/p4square/grow/frontend/TrainingPageResource.java
+++ b/src/com/p4square/grow/frontend/TrainingPageResource.java
@@ -95,6 +95,11 @@ public class TrainingPageResource extends FreeMarkerPageResource {
}
}
+ if (mChapter == null) {
+ // Everything is completed... send them back to seeker.
+ mChapter = "seeker";
+ }
+
String nextPage = mConfig.getString("dynamicRoot", "");
nextPage += "/account/training/" + mChapter;
getResponse().redirectSeeOther(nextPage);