From 69e2512750dd75fce43a21226979996c3cd7da1d Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sun, 9 Jun 2013 17:35:48 -0700 Subject: 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. --- src/com/p4square/grow/frontend/SurveyPageResource.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/com/p4square/grow/frontend/SurveyPageResource.java') 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"); } /** -- cgit v1.2.3