Get a page based on URL as defined by the PageData.URLSegment. Try begin with both start page and root page.

Namespace:  EPiServer.Web
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
protected static PageData GetPageFromStartByPath(
	string path,
	LanguageBranch languageBranch
)

Parameters

path
Type: System..::.String
The friendly URL path to find a page for
languageBranch
Type: EPiServer.DataAbstraction..::.LanguageBranch
The language branch we prefer

Return Value

A PageData object that was found based on the URL, or NULL if not found

Remarks

A language branch prefix will always be scanned and if found used as a language selector for the returned page

See Also