diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2013-06-09 17:35:48 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2013-06-09 17:35:48 -0700 |
commit | 69e2512750dd75fce43a21226979996c3cd7da1d (patch) | |
tree | 691dca375161583393ce32bb0869cb7449255118 /src/com/p4square/grow/frontend/SurveyPageResource.java | |
parent | f4c2eb2dafbca580319a9f50ef4f5dd68d658702 (diff) |
Configuration Changes
Fixing a bug in the config class and updating all templates and pages to
use the dynamicRoot and staticRoot config values to prefix URLs.
Diffstat (limited to 'src/com/p4square/grow/frontend/SurveyPageResource.java')
-rw-r--r-- | src/com/p4square/grow/frontend/SurveyPageResource.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/p4square/grow/frontend/SurveyPageResource.java b/src/com/p4square/grow/frontend/SurveyPageResource.java index e7fcd07..280184b 100644 --- a/src/com/p4square/grow/frontend/SurveyPageResource.java +++ b/src/com/p4square/grow/frontend/SurveyPageResource.java @@ -152,13 +152,13 @@ public class SurveyPageResource extends FreeMarkerPageResource { } // Find the next question or finish the assessment. - String nextPage; + String nextPage = mConfig.getString("dynamicRoot", ""); { String nextQuestionId = (String) questionData.get("nextQuestion"); if (nextQuestionId == null) { - nextPage = "/account/assessment/results"; + nextPage += "/account/assessment/results"; } else { - nextPage = "/account/assessment/question/" + nextQuestionId; + nextPage += "/account/assessment/question/" + nextQuestionId; } } @@ -176,7 +176,7 @@ public class SurveyPageResource extends FreeMarkerPageResource { * @return The backend endpoint URI */ private String getBackendEndpoint() { - return mConfig.getString("backendUri", "http://localhost:9095"); + return mConfig.getString("backendUri", "riap://component/backend"); } /** |