if (!Url.Contains("://", StringComparison.OrdinalIgnoreCase))
{
var umbracoContext = UmbracoContext.Current;
var umbracoHelper = new UmbracoHelper(umbracoContext);
Url = (umbracoHelper.TypedContentAtRoot().FirstOrDefault().UrlWithDomain() + Url).Replace("//", "/");
}
Umbraco Forms post to relative url
How can I post the result (workflow) to a relative url? For example: /umbraco/surface/contactform/index
I don't want to add the full url there to make it easier to migrate from test environment to production.
Solved it by overriding this code: https://gist.github.com/nul800sebastiaan/ce94b1b4d1bd0bf1fecb1ea82341d4c1
and added the code below above UploadValues:
Make sure you modify the Guid too.
is working on a reply...