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

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.)