Latest
This commit is contained in:
@@ -41,11 +41,11 @@ public static class UrlPolicy
|
||||
/// <summary>
|
||||
/// Builds a canonical catalog URL for navigating to a specific product detail page.
|
||||
/// </summary>
|
||||
/// <param name="productSlug">The slug of the product.</param>
|
||||
public static string BrowseProduct(string productSlug)
|
||||
/// <param name="slug">The slug of the product.</param>
|
||||
public static string BrowseProduct(string slug)
|
||||
{
|
||||
ArgumentException.ThrowIfNullOrWhiteSpace(productSlug);
|
||||
return $"/catalog/product?product-slug={Uri.EscapeDataString(productSlug)}";
|
||||
ArgumentException.ThrowIfNullOrWhiteSpace(slug);
|
||||
return $"/browse/product?slug={Uri.EscapeDataString(slug)}";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user