# Canonical im Listing

**URL:** https://forum.shopware.com/t/canonical-im-listing/52500
**Category:** Themes & Design
**Created:** [20. April 2018 um 13:06 UTC](https://forum.shopware.com/t/canonical-im-listing/52500 "2018-04-20T13:06:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)
#### Post date: [20. April 2018 um 13:06 UTC](https://forum.shopware.com/t/canonical-im-listing/52500/1 "2018-04-20T13:06:04Z")

</div>

Hi, ich habe ein Problem, dass der&nbsp;Canonical im Listing nicht wie angenommen ab Seite 2 (p=2) angezeigt wird. Ein Blick in das Theme und ich stelle fest, dass entweder prev/next ODER canonical angezeit wird. Wieso wird bei „prev“ nicht zusätzlich der Canonical genutzt?

```
{* Canonical link *}
{block name='frontend_index_header_canonical'}
{* Count of available product pages *}
    {$pages = ceil($sNumberArticles / $criteria->getLimit())}

    {if {config name=seoIndexPaginationLinks} && $showListing && $pages > 1}
    {* Previous rel tag *}
        {if $sPage > 1}
            {$sCategoryContent.canonicalParams.sPage = $sPage - 1}
            
        {/if}

    {* Next rel tag *}
        {if $pages >= $sPage + 1}
            {$sCategoryContent.canonicalParams.sPage = $sPage + 1}
            
        {/if}
    {elseif !{config name=seoIndexPaginationLinks} || !$showListing}
        
    {/if}
{/block}

```

Meine Frage wäre was „seoIndexPaginationLinks“ und „showListing“ sein soll? Danke und Gruss

EDIT: sehe gerade Denkfehler, ELSEIF != ODER, dennoch wo editiere ich diese Variablen?
