From 63f961f54ee36aaefc11537310ba2ca0e0c4cd91 Mon Sep 17 00:00:00 2001 From: srosse <none@none> Date: Wed, 23 Apr 2014 17:13:00 +0200 Subject: [PATCH] OO-1074: fix login path at the end of the registration process --- .../java/org/olat/registration/RegistrationController.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/olat/registration/RegistrationController.java b/src/main/java/org/olat/registration/RegistrationController.java index 54a0ee1555d..0ec72386fd3 100644 --- a/src/main/java/org/olat/registration/RegistrationController.java +++ b/src/main/java/org/olat/registration/RegistrationController.java @@ -389,7 +389,12 @@ public class RegistrationController extends BasicController implements Activatea finishVC.contextPut("locale", getLocale()); finishVC.contextPut("username", registrationForm.getLogin()); finishVC.contextPut("text", getTranslator().translate("step5.reg.text", new String[] {registrationForm.getLogin() })); - finishVC.contextPut("loginhref", WebappHelper.getServletContextPath()); + String loginhref = WebappHelper.getServletContextPath(); + if(StringHelper.containsNonWhitespace(loginhref)) { + finishVC.contextPut("loginhref", loginhref); + } else { + finishVC.contextPut("loginhref", "/"); + } regarea.setContent(finishVC); } -- GitLab