C# Class Alloy.Helpers.UrlHelpers

Show file Open project: episerver/EPiTranslateFlowDemo

Public Methods

Method Description
GetPageRoute ( this requestContext, EPiServer.Core.ContentReference contentLink ) : RouteValueDictionary
PageLinkUrl ( this urlHelper, EPiServer.Core.ContentReference contentLink ) : IHtmlString

Returns the target URL for a ContentReference. Respects the page's shortcut setting so if the page is set as a shortcut to another page or an external URL that URL will be returned.

PageLinkUrl ( this urlHelper, PageData page ) : IHtmlString

Returns the target URL for a page. Respects the page's shortcut setting so if the page is set as a shortcut to another page or an external URL that URL will be returned.

Method Details

GetPageRoute() public static method

public static GetPageRoute ( this requestContext, EPiServer.Core.ContentReference contentLink ) : RouteValueDictionary
requestContext this
contentLink EPiServer.Core.ContentReference
return RouteValueDictionary

PageLinkUrl() public static method

Returns the target URL for a ContentReference. Respects the page's shortcut setting so if the page is set as a shortcut to another page or an external URL that URL will be returned.
public static PageLinkUrl ( this urlHelper, EPiServer.Core.ContentReference contentLink ) : IHtmlString
urlHelper this
contentLink EPiServer.Core.ContentReference
return IHtmlString

PageLinkUrl() public static method

Returns the target URL for a page. Respects the page's shortcut setting so if the page is set as a shortcut to another page or an external URL that URL will be returned.
public static PageLinkUrl ( this urlHelper, PageData page ) : IHtmlString
urlHelper this
page PageData
return IHtmlString