Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
All should be ready if you use this ModuleDependency:
[ModuleDependency(typeof(EPiServer.Web.InitializationModule))]
ContentReference.StartPage is resolved from the http request. See http://world.episerver.com/Blogs/Johan-Bjornfot/Dates1/2013/12/Multisite-feature-in-EPiServer-75/
You can in admin mode (under Manage WebSites) add host name '*' (wildcard host) to a site. Then that site will be returned as SiteDefinition.Current (and hence also ContentReference.StartPage) when a site can not be resolved from the request (either when there is no request or the host of the request does not match any site).
I need todo a few checks when ContentReference.StartPage is ready. Can I somehow hook up on that event?