View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007085 | OXID eShop (all versions) | 4.09. SEO, SEO URL | public | 2020-02-06 14:23 | 2024-09-18 11:31 |
Reporter | ieickenbusch | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Product Version | 6.1.5 | ||||
Summary | 0007085: Seo url for inactive or not existent language views are calculated | ||||
Description | In 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 Reproduce | Setup 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. | ||||
Tags | SEO Rewrite | ||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||