You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution:
There is an issue in Amasty_ShopbySeo extension, that affect all url with length equal 4.
You need to edit file in Amasty_ShopbySeo extension: app/code/Amasty/ShopbySeo/Helper/Url.php
and change removeCategorySuffix method, from
public function removeCategorySuffix($url)
{
$suffix = $this->scopeConfig->getValue('catalog/seo/category_url_suffix');
if (strlen($suffix)) {
$p = strrpos($url, $suffix);
if ($p == strlen($url) - strlen($suffix)) {
$url = substr($url, 0, $p);
}
}
return $url;
}
to
public function removeCategorySuffix($url)
{
$suffix = $this->scopeConfig->getValue('catalog/seo/category_url_suffix');
if (strlen($suffix)) {
$p = strrpos($url, $suffix);
if (!$p) {
return $url;
}
if ($p == strlen($url) - strlen($suffix)) {
$url = substr($url, 0, $p);
}
}
return $url;
}
Blog link in category top navigation menu and footer do not work.
You get 403 or 404 error when clicking on it.
Link looks like mystore.com/.html
The text was updated successfully, but these errors were encountered: