DaffCategoryMagentoDriverConfig
An interface for providing @daffodil/category/driver/magento with necessary config values.
interface DaffCategoryMagentoDriverConfig {
truncateUrl: boolean
uriTruncationStrategy: (string) => string
}
Properties
Name | Type | Description |
---|---|---|
truncateUrl | boolean | Whether or not to attempt to truncate the category URL during the href="docs/api/category/driver/magento/DaffMagentoCategoryService">DaffMagentoCategoryService#getByUrl call. True by default. |
uriTruncationStrategy | (string) => string | An optional custom function to truncate the URL. Defaults to truncate leading slash, file extension, query params, and fragments. |