Skip to content

Commit 034d187

Browse files
authored
Merge pull request #1636 from algolia/release/3.13.6
Release/3.13.6
2 parents 72622b6 + 515bf3d commit 034d187

File tree

7 files changed

+12
-6
lines changed

7 files changed

+12
-6
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGE LOG
22

3+
## 3.13.6
4+
5+
### Bug Fixes
6+
- Improve handling of insights params for URLs that already have a query string
7+
- Improve query method for alternate root categories - Thank you @igorfigueiredogen
8+
39
## 3.13.5
410

511
### Updates

Helper/Entity/CategoryHelper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function getCategoryCollectionQuery($storeId, $categoryIds = null)
180180
{
181181
/** @var \Magento\Store\Model\Store $store */
182182
$store = $this->storeManager->getStore($storeId);
183-
$storeRootCategoryPath = sprintf('%d/%d', $this->getRootCategoryId(), $store->getRootCategoryId());
183+
$storeRootCategoryPath = sprintf('%d/%d/', $this->getRootCategoryId(), $store->getRootCategoryId());
184184

185185
$unserializedCategorysAttrs = $this->getAdditionalAttributes($storeId);
186186
$additionalAttr = array_column($unserializedCategorysAttrs, 'attribute');

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Algolia Search & Discovery extension for Magento 2
22
==================================================
33

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

77
![PHP](https://img.shields.io/badge/PHP-8.2%2C8.1%2C7.4-blue)

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Algolia Search & Discovery extension for Magento 2",
44
"type": "magento2-module",
55
"license": ["MIT"],
6-
"version": "3.13.5",
6+
"version": "3.13.6",
77
"require": {
88
"magento/framework": "~102.0|~103.0",
99
"algolia/algoliasearch-client-php": "3.3.2",

etc/module.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
3-
<module name="Algolia_AlgoliaSearch" setup_version="3.13.5">
3+
<module name="Algolia_AlgoliaSearch" setup_version="3.13.6">
44
<sequence>
55
<module name="Magento_Theme"/>
66
<module name="Magento_Backend"/>

view/frontend/web/autocomplete.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ define(
152152
indexName: hit.__autocomplete_indexName
153153
});
154154
if (hit.url.indexOf('?') > -1) {
155-
hit.urlForInsights += insightsDataUrlString
155+
hit.urlForInsights += '&' + insightsDataUrlString;
156156
} else {
157157
hit.urlForInsights += '?' + insightsDataUrlString;
158158
}

view/frontend/web/internals/common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ define(['jquery', 'algoliaBundle'], function ($, algoliaBundle) {
237237
indexName: hit.__indexName
238238
});
239239
if (hit.url.indexOf('?') > -1) {
240-
hit.urlForInsights += insightsDataUrlString
240+
hit.urlForInsights += '&' + insightsDataUrlString;
241241
} else {
242242
hit.urlForInsights += '?' + insightsDataUrlString;
243243
}

0 commit comments

Comments
 (0)