I am using umbraco with directoryUrls, but also with the IIS UrlRewrite module. So I have a page which displays a members' profile, which url looks like /members/1234/John/Doe (configured in the IIS UrlRewrite module).
I wanted the form action to be this URL, instead of something like /members?id=1234, but when I tried to set the action of the form, I noticed it gets overwrited via the FormRewriterControlAdapter of umbraco.
The code looks inside the VirtualUrl items and then builds the action, but why not just use "Form.Action = Request.RawUrl;"?
FormRewriterControlAdapter and IIS Url Rewriting
Hey people,
I am using umbraco with directoryUrls, but also with the IIS UrlRewrite module.
So I have a page which displays a members' profile, which url looks like /members/1234/John/Doe (configured in the IIS UrlRewrite module).
I wanted the form action to be this URL, instead of something like /members?id=1234, but when I tried to set the action of the form, I noticed it gets overwrited via the FormRewriterControlAdapter of umbraco.
The code looks inside the VirtualUrl items and then builds the action, but why not just use "Form.Action = Request.RawUrl;"?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.