AI OnAI Off
The site is running CMS 6. Do you know if this bug has been fixed in CMS 6 R2? Couldn't find anything addressing this issue
I had this problem once before and solved this with some coding in global.asax.cs. With some inspiration from the code below you might solve the problem.
protected void Application_Start(Object sender, EventArgs e)
{
XFormControl.ControlSetup += XForm_ControlSetup;
}
public void XForm_ControlSetup(object sender, EventArgs e)
{
XFormControl control = (XFormControl)sender;
control.AfterSubmitPostedData += new SaveFormDataEventHandler(XForm_AfterSubmitPostedData);
}
public void XForm_AfterSubmitPostedData(object sender, SaveFormDataEventArgs e)
{
var control = (XFormControl) sender;
if (control.FormDefinition.PageGuidAfterPost != Guid.Empty)
{
var pageMap = PermanentLinkMapStore.Find(control.FormDefinition.PageGuidAfterPost) as PermanentPageLinkMap;
if (pageMap != null)
{
var pageHandler = control.Page as PageBase;
if (pageHandler != null)
{
var redirectUrl = UriSupport.AddLanguageSelection(pageMap.MappedUrl.ToString(), pageHandler.CurrentPage.LanguageID);
control.Page.Response.Redirect(redirectUrl);
}
}
}
}
Regards
Joakim
I'm almost 100% sure that I fixed that bug to the CMS 6 R2 release...
/Linus
Hi,
I'm having trouble with XForms on a site that has multiple languages. If "
I.e. the user is sent to www.thewebsite.com/services/ instead of www.thewebsite.com/se/Tjanster/