I Have Created custom submit action in sitecore 9 forms.
In that custom action, I want to reload a same the page with adding of query parameters.
So far I tried.
Log.Error(Error, typeof(SendDataToApi));
Log.Error(ErrorDescription, typeof(SendDataToApi));
//Redirect to a Error Page
var defaultUrlOptions = LinkManager.GetDefaultUrlOptions();
defaultUrlOptions.SiteResolving = Settings.Rendering.SiteResolving;
formSubmitContext.RedirectUrl = new UrlString(LinkManager.GetItemUrl(Sitecore.Context.Item, defaultUrlOptions)) + "?apierror=true";
formSubmitContext.RedirectOnSuccess = true;
formSubmitContext.Abort();
It Reloads the page but the querystring was not added ?
Any Help..