View Issue Details

IDProjectCategoryView StatusLast Update
0007085OXID eShop (all versions)4.09. SEO, SEO URLpublic2024-07-03 09:01
Reporterieickenbusch Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
Product Version6.1.5 
Summary0007085: Seo url for inactive or not existent language views are calculated
DescriptionIn wave theme alternate language urls are rendered like this:

        [{if $oView->isLanguageLoaded()}]
            [{assign var="oConfig" value=$oViewConf->getConfig()}]
            [{foreach from=$oxcmp_lang item=_lng}]
                [{if $_lng->id == $oConfig->getConfigParam('sDefaultLang')}]
                    <link rel="alternate" hreflang="x-default" href="[{$_lng->link}]"/>
                [{/if}]
                <link rel="alternate" hreflang="[{$_lng->abbr}]" href="[{$_lng->link|oxaddparams:$oView->getDynUrlParams()}]"/>
            [{/foreach}]
        [{/if}]

But if there is a cms page which has inactive or not existent language, the url seo url is calculated like this:
en/oxid/

It is also saved into oxseo table. Even the language switch in header show wrong the wrong seo url. In my opinion it should not be rendered as alternate link and in language switch it should lead to the startpage.
Steps To ReproduceSetup demo shop.
Activate english as second language.
Build new CMS page without english copy.
Check language switch in header and alternate link tag in output source.
Check oxseo for new entry.
TagsSEO Rewrite
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined

Activities

There are no notes attached to this issue.