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

Read EpiServer Url from config file

Hi,

i want to read the episerver URL from config file and save it in viewbag in mvc.

i want to read the below highlighted URL from config file like we normally read from config.


httpCacheability="Public" uiEditorCssPaths="~/Static/css/Editor.css"
urlRebaseKind="ToRootRelative" pageUseBrowserLanguagePreferences="false"
uiShowGlobalizationUserInterface="true" subscriptionHandler="EPiServer.Personalization.SubscriptionMail,EPiServer"
uiMaxVersions="20" pageValidateTemplate="false" uiUrl="~/EPiServer/CMS/" />

#151455
Jul 22, 2016 11:37

Thanks a lot Jeroen

#151558
Jul 28, 2016 14:51
error This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.