From 4af43fb63ebc4313945a1c95c71958ac6df255cd Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Thu, 10 Oct 2013 11:47:36 +0100 Subject: [PATCH] Fix path for resources in formflows --- .../java/org/keycloak/services/resources/flows/FormFlows.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/src/main/java/org/keycloak/services/resources/flows/FormFlows.java b/services/src/main/java/org/keycloak/services/resources/flows/FormFlows.java index cdb588e2e5..133b062354 100755 --- a/services/src/main/java/org/keycloak/services/resources/flows/FormFlows.java +++ b/services/src/main/java/org/keycloak/services/resources/flows/FormFlows.java @@ -125,7 +125,7 @@ public class FormFlows { // TODO find a better way to obtain contextPath // Getting context path by removing "rest/" substring from the BaseUri path - formDataBean.setContextPath(requestURI.substring(0,requestURI.length()-5)); + formDataBean.setContextPath(requestURI.substring(0, requestURI.length() - 6)); formDataBean.setSocialRegistration(socialRegistration); // Find the service and process relevant template