Fixed register and new password link when the CMS's base dir is not the root /

This commit is contained in:
Jocelyn Fiat
2013-02-14 13:09:11 +01:00
parent bf952a9719
commit df9eb65144
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ feature -- Execution
initialize_primary_tabs (u) initialize_primary_tabs (u)
if u /= Void then if u /= Void then
if attached u.email as l_email then if attached u.email as l_email then
f := new_password_form (request.path_info, "new-password") f := new_password_form (url (request.path_info, Void), "new-password")
b.append ("Password reset instructions will be mailed to <em>" + l_email + "</em>. You must " + link ("log out", "/user/logout", Void) + " to use the password reset link in the e-mail.") b.append ("Password reset instructions will be mailed to <em>" + l_email + "</em>. You must " + link ("log out", "/user/logout", Void) + " to use the password reset link in the e-mail.")
b.append (f.to_html (theme)) b.append (f.to_html (theme))
else else

View File

@@ -34,7 +34,7 @@ feature -- Execution
b.append ("You are already " + link ("signed in", "/user", Void) + ", please " + link ("signout", "/user/logout", Void) + " before trying to " + link ("register a new account", "/account/register", Void) + ".") b.append ("You are already " + link ("signed in", "/user", Void) + ", please " + link ("signout", "/user/logout", Void) + " before trying to " + link ("register a new account", "/account/register", Void) + ".")
set_redirection (url ("/user", Void)) set_redirection (url ("/user", Void))
else else
f := registration_form (request.path_info, "reg") f := registration_form (url (request.path_info, Void), "reg")
if request.is_post_request_method then if request.is_post_request_method then
create fd.make (request, f) create fd.make (request, f)