fix SEO URL generator

This commit is contained in:
Daniel Seifert 2024-09-20 21:56:36 +02:00
parent faf08ed786
commit f43eb2584a
Signed by: DanielS
GPG Key ID: 6A513E13AEE66170

View File

@ -131,7 +131,7 @@ class Actions
{
foreach (array_keys($this->stdClassName) as $id) {
$seoEncoder = oxNew(SeoEncoder::class);
$objectid = md5(strtolower(Registry::getConfig()->getShopId() . $this->seo_de[$id]));
$objectid = md5(strtolower(Registry::getConfig()->getShopId() . 'index.php?cl=' . $this->stdClassName[$id]));
if (!$this->hasSeoUrl($this->stdClassName[$id], 0)) {
$seoEncoder->addSeoEntry(
$objectid,
@ -143,7 +143,7 @@ class Actions
false
);
}
if (!$this->hasSeoUrl($this->stdClassName[$id], 0)) {
if (!$this->hasSeoUrl($this->stdClassName[$id], 1)) {
$seoEncoder->addSeoEntry(
$objectid,
Registry::getConfig()->getShopId(),