Try our conversational search powered by Generative AI!

How does EPiServer use config key EPsRootDir?

I've installed 4.20 in a virtual directory under the default web server (localhost) and set the following values in web.config; The URL to the starting page is http://localhost/epi420/default.aspx. No matter what I set in EPsRootDir and EPsHostUrl all links in default.aspx are relative to http://localhost (for instance http://localhost/templates/page.aspx?id=41) and therefore does not work. Why is Container.CurrentPage.LinkURL not taking EPsRootDir into account? When using a virtual directory, I hope I'm not supposed to replace all linkreferences with something using System.Web.HttpRuntime.AppDomainAppVirtualPath ...
Sep 25, 2003 12:44
Currently the RootDir-parameter is not used when populating the linkUrl parameter. As it is today you have to use the function "rebuild links" in the admin mode to replace the root dir of current links. The use of the rootdir value when creating the linkUrl has been on our wishlist for quite awhile so we will probably change this in the future.
Sep 25, 2003 13:04
* 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.