volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Switch language

Hi, im trying to have a funnction that returns the user to the startpage with selected laguage: string language = ddl.SelectedItem.Value; // Value could be "sv", "en" ect. PageData startPageCurrentLanguage = DataFactory.Instance.GetPage(EPiServer.Core.PageReference.StartPage); PageData startPageNewLanguage = DataFactory.Instance.GetPage(EPiServer.Core.PageReference.StartPage, new LanguageSelector(language)); Response.Redirect(startPageNewLanguage.LinkURL); Problem is that startPageNewLanguage have the same LinkUrl as startPageCurrentLanguage!!? help.
#13390
Mar 12, 2008 12:03
Look at http://sdk.episerver.com/library/cms5/html/M_EPiServer_UriSupport_AddLanguageSelection.htm Regards, Tibi
#19100
Mar 17, 2008 16:33
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.