Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
PageReference pr = new PageReference(148);
LanguageSelector ls = new LanguageSelector(LanguageContext.Current.CurrentLanguageBranch);
PageData pg = Global.EPDataFactory.GetPage(pr, ls);
string link = pg.StaticLinkURL;
//Or if you dont really need det pageData, just the url
string link = pp.DetermineAutomaticURL(LanguageContext.Current.CurrentLanguageBranch);
Thomas Leela, Epinova
PageReference pr = new PageReference(148); PageData pg = Global.EPDataFactory.GetPage(pr); link = pg.StaticLinkURL
This code gives the default language for the page not the current language.