FacetedNavPolicy class

Configurable SEO policy for faceted navigation (filters, sorting, pagination).

Constructors

FacetedNavPolicy({required String baseCategoryUrl, Set<String> allowedIndexableParams = const {'brand', 'category'}, bool canonicalizeToCategory = true, int maxFilterParameters = 2, int noindexPaginationAfterPage = 5})
const

Properties

allowedIndexableParams → Set<String>
Parameter keys permitted to form curated indexable pages.
final
baseCategoryUrl → String
The root canonical URL of the category page without query parameters.
final
canonicalizeToCategory → bool
Whether filtered URLs should default canonical to baseCategoryUrl.
final
hashCode → int
The hash code for this object.
no setterinherited
maxFilterParameters → int
Maximum number of combined filters before forcing noindex, follow.
final
noindexPaginationAfterPage → int
Page threshold after which paginated results are noindexed to save crawl budget.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

evaluate(Map<String, String> queryParameters) → FacetedUrlDecision
Evaluates an incoming faceted query map and returns canonical and indexing decisions.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited