Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Empty product URL paths #63

Closed
indiebytes opened this issue Jun 12, 2019 · 0 comments
Closed

Empty product URL paths #63

indiebytes opened this issue Jun 12, 2019 · 0 comments

Comments

@indiebytes
Copy link
Contributor

If Divante\VsbridgeIndexerCatalog\Model::getProductUrlSuffix() returns null it will cause an issue in Divante\VsbridgeIndexerCatalog\Model::addUrlPath().

$rewrite = mb_substr($rewrite, 0, -strlen($urlSuffix));

strlen(null) will return 0 which in turn leads to mb_substr() returning an empty string which will be indexed as url_path for the product.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants