Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

IPageRouteHelper.Page throws exception if HttpContext is missing

Found in

EPiServer.CMS.Core 7.5.394.2

Fixed in

EPiServer.CMS.Core 11.1.0

(Or a related package)

Created

Jun 29, 2017

Updated

Nov 21, 2017

Area

CMS Core

State

Closed, Fixed and tested


Description

Currently, IPageRouteHelper.Page throws an exception if used outside a web request (it is dependent on RequestContext). It should preferably return null instead of throwing an exception.
(Same probably applies to IContentRouteHelper.)