Skip to content

Commit

Permalink
Release/3.10.3 (#626)
Browse files Browse the repository at this point in the history
Release/3.10.3

Co-authored-by: Olsi Qose <[email protected]>
  • Loading branch information
supercid and olsi-qose authored Jan 2, 2020
2 parents 5a80fed + b5e4851 commit 72dd885
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

### 3.10.3
* Fix an issue where product url contains the category breadcrumbs if shortest url is not first entry in database table

### 3.10.2
* Fix an issue where the indexer page size was not set properly (Credit goes to `Deepak Upadhyay` (https://github.com/dupadhyay3))

Expand Down
4 changes: 4 additions & 0 deletions Model/Product/Url/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ public function getUrlInStore(Product $product, Store $store)
UrlRewrite::ENTITY_TYPE => ProductUrlRewriteGenerator::ENTITY_TYPE,
UrlRewrite::STORE_ID => $store->getId(),
];
$productRequestPath = $product->getData('request_path');
if (!empty($productRequestPath)) {
$filterData[UrlRewrite::REQUEST_PATH] = $productRequestPath;
}
$rewrite = $this->urlFinder->findOneByData($filterData);
if ($rewrite) {
$routeParams['_direct'] = $rewrite->getRequestPath();
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nosto/module-nostotagging",
"description": "Increase your conversion rate and average order value by delivering your customers personalized product recommendations throughout their shopping journey.",
"type": "magento2-module",
"version": "3.10.2",
"version": "3.10.3",
"require-dev": {
"php": ">=7.1.0",
"phan/phan": "0.8.8",
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
<!--suppress XmlUnboundNsPrefix -->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Nosto_Tagging" setup_version="3.10.2"/>
<module name="Nosto_Tagging" setup_version="3.10.3"/>
</config>

0 comments on commit 72dd885

Please sign in to comment.