Fixing various form urls, that was not taking into account base url
This commit is contained in:
@@ -25,7 +25,7 @@ feature -- Execution
|
|||||||
create b.make_empty
|
create b.make_empty
|
||||||
if attached non_empty_string_path_parameter ("type") as s_type then
|
if attached non_empty_string_path_parameter ("type") as s_type then
|
||||||
if attached service.content_type (s_type) as l_type then
|
if attached service.content_type (s_type) as l_type then
|
||||||
f := edit_form (Void, request.path_info, "add-" + l_type.name, l_type)
|
f := edit_form (Void, url (request.path_info, Void), "add-" + l_type.name, l_type)
|
||||||
if request.is_post_request_method then
|
if request.is_post_request_method then
|
||||||
create fd.make (request, f)
|
create fd.make (request, f)
|
||||||
l_preview := attached {WSF_STRING} fd.item ("op") as l_op and then l_op.same_string ("Preview")
|
l_preview := attached {WSF_STRING} fd.item ("op") as l_op and then l_op.same_string ("Preview")
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ feature -- Execution
|
|||||||
then
|
then
|
||||||
if attached service.content_type (l_node.content_type_name) as l_type then
|
if attached service.content_type (l_node.content_type_name) as l_type then
|
||||||
if has_permission ("edit " + l_type.name) then
|
if has_permission ("edit " + l_type.name) then
|
||||||
f := edit_form (l_node, request.path_info, "edit-" + l_type.name, l_type)
|
f := edit_form (l_node, url (request.path_info, Void), "edit-" + l_type.name, l_type)
|
||||||
if request.is_post_request_method then
|
if request.is_post_request_method then
|
||||||
create fd.make (request, f)
|
create fd.make (request, f)
|
||||||
l_preview := attached {WSF_STRING} fd.item ("op") as l_op and then l_op.same_string ("Preview")
|
l_preview := attached {WSF_STRING} fd.item ("op") as l_op and then l_op.same_string ("Preview")
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ feature -- Execution
|
|||||||
set_redirection (url ("/user/register", Void))
|
set_redirection (url ("/user/register", Void))
|
||||||
else
|
else
|
||||||
service.storage.fill_user_profile (u)
|
service.storage.fill_user_profile (u)
|
||||||
f := edit_form (u, request.path_info, "user-edit")
|
f := edit_form (u, url (request.path_info, Void), "user-edit")
|
||||||
|
|
||||||
if request.is_post_request_method then
|
if request.is_post_request_method then
|
||||||
create fd.make (request, f)
|
create fd.make (request, f)
|
||||||
|
|||||||
Reference in New Issue
Block a user