Skip to content

Commit

Permalink
Merge pull request #1636 from algolia/release/3.13.6
Browse files Browse the repository at this point in the history
Release/3.13.6
  • Loading branch information
cammonro authored Oct 30, 2024
2 parents 72622b6 + 515bf3d commit 034d187
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGE LOG

## 3.13.6

### Bug Fixes
- Improve handling of insights params for URLs that already have a query string
- Improve query method for alternate root categories - Thank you @igorfigueiredogen

## 3.13.5

### Updates
Expand Down
2 changes: 1 addition & 1 deletion Helper/Entity/CategoryHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function getCategoryCollectionQuery($storeId, $categoryIds = null)
{
/** @var \Magento\Store\Model\Store $store */
$store = $this->storeManager->getStore($storeId);
$storeRootCategoryPath = sprintf('%d/%d', $this->getRootCategoryId(), $store->getRootCategoryId());
$storeRootCategoryPath = sprintf('%d/%d/', $this->getRootCategoryId(), $store->getRootCategoryId());

$unserializedCategorysAttrs = $this->getAdditionalAttributes($storeId);
$additionalAttr = array_column($unserializedCategorysAttrs, 'attribute');
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Algolia Search & Discovery extension for Magento 2
==================================================

![Latest version](https://img.shields.io/badge/latest-3.13.5-green)
![Latest version](https://img.shields.io/badge/latest-3.13.6-green)
![Magento 2](https://img.shields.io/badge/Magento-2.4.x-orange)

![PHP](https://img.shields.io/badge/PHP-8.2%2C8.1%2C7.4-blue)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Algolia Search & Discovery extension for Magento 2",
"type": "magento2-module",
"license": ["MIT"],
"version": "3.13.5",
"version": "3.13.6",
"require": {
"magento/framework": "~102.0|~103.0",
"algolia/algoliasearch-client-php": "3.3.2",
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Algolia_AlgoliaSearch" setup_version="3.13.5">
<module name="Algolia_AlgoliaSearch" setup_version="3.13.6">
<sequence>
<module name="Magento_Theme"/>
<module name="Magento_Backend"/>
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ define(
indexName: hit.__autocomplete_indexName
});
if (hit.url.indexOf('?') > -1) {
hit.urlForInsights += insightsDataUrlString
hit.urlForInsights += '&' + insightsDataUrlString;
} else {
hit.urlForInsights += '?' + insightsDataUrlString;
}
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/internals/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ define(['jquery', 'algoliaBundle'], function ($, algoliaBundle) {
indexName: hit.__indexName
});
if (hit.url.indexOf('?') > -1) {
hit.urlForInsights += insightsDataUrlString
hit.urlForInsights += '&' + insightsDataUrlString;
} else {
hit.urlForInsights += '?' + insightsDataUrlString;
}
Expand Down

0 comments on commit 034d187

Please sign in to comment.