Skip to content
Snippets Groups Projects
Commit 63f961f5 authored by srosse's avatar srosse
Browse files

OO-1074: fix login path at the end of the registration process

parent 902206fb
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment