Table of Contents

Class ProductUrlQueryStringProvider

Namespace
Dynamicweb.Ecommerce.Frontend.UrlHandling
Assembly
Dynamicweb.Ecommerce.dll
public class ProductUrlQueryStringProvider : UrlQueryStringProvider
Inheritance
ProductUrlQueryStringProvider
Inherited Members

Methods

TryResolvePath(string, string, out UrlResolveResult?)

Tries to resolve a path into a querstring.

public override bool TryResolvePath(string path, string languageId, out UrlResolveResult? resolveResult)

Parameters

path string

The path, i.e. /mypage/my-awesome-product-prod12.

languageId string

The language the resolution should happen in.

resolveResult UrlResolveResult

The UrlResolveResult contains ResolvedQuerystring and RemainingPartOfPath.

Returns

bool

TryResolveQueryString(NameValueCollection, string, out UrlNode?)

Tries the resolve a query string to a url path for a specific language.

public override bool TryResolveQueryString(NameValueCollection queryString, string languageId, out UrlNode? resolvedPath)

Parameters

queryString NameValueCollection

The query string - i.e. 'id=123&productid=prod12'.

languageId string

The language the resolution should happen in. Typically the EcomLanguageId of the requested area.

resolvedPath UrlNode

The resolved path as a urlnode resulting in /my-awesome-product-prod12.

Returns

bool
To top