Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Fixed no follow issue within selected facets
Browse files Browse the repository at this point in the history
  • Loading branch information
Edwin Jacobs committed Jun 4, 2019
1 parent f41a29a commit accddb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/code/community/Emico/Tweakwise/Helper/Seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected function exceedsAttributeLimit(Emico_Tweakwise_Model_Bus_Type_Facet $f

$selectedAttributes = $layer->getSelectedAttributes();
$selectedAttributesCount = count($selectedAttributes);
if ($facetLinkedTo !== null && !in_array($facetLinkedTo, $layer->getSelectedFacets())) {
if ($facetLinkedTo !== null) {
$selectedAttributesCount++;
}

Expand All @@ -60,6 +60,7 @@ protected function exceedsAttributeLimit(Emico_Tweakwise_Model_Bus_Type_Facet $f
/**
* Check if the given facet is not in the blacklist for indexing by robots
*
* @param Emico_Tweakwise_Model_Bus_Type_Facet|null $facetLinkedTo
* @return bool
*/
protected function isInFacetBlacklist(Emico_Tweakwise_Model_Bus_Type_Facet $facetLinkedTo = null)
Expand Down Expand Up @@ -90,6 +91,7 @@ protected function isInFacetBlacklist(Emico_Tweakwise_Model_Bus_Type_Facet $face
/**
* Check if the combination of 2 filters is allowed for indexing
*
* @param Emico_Tweakwise_Model_Bus_Type_Facet|null $facetLinkedTo
* @return bool
*/
protected function isInCombinationWhitelist(Emico_Tweakwise_Model_Bus_Type_Facet $facetLinkedTo = null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ public function buildCanonicalUrl(Emico_Tweakwise_Model_Catalog_Layer $state)

/**
* @param Emico_Tweakwise_Model_Catalog_Layer $state
* @return string
*/
protected function buildIndexableAttributePath(Emico_Tweakwise_Model_Catalog_Layer $state)
{
Expand Down

0 comments on commit accddb3

Please sign in to comment.