Fixed template - breadcrumb - $breadcrumb.href - incorrect for route help

Mouth

Well-known member
v1.5.13
Edit Template: breadcrumb
Code:
            <xen:if is="{$navigation}">
                <xen:foreach loop="$navigation" value="$breadcrumb" i="$i" count="$count">
                    <span class="crust"{xen:if $microdata, ' itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"'}>
                        <a href="{xen:raw $breadcrumb.href}" class="crumb"{xen:if $microdata, ' rel="up" itemprop="url"'}><span{xen:if $microdata, ' itemprop="title"'}>{xen:raw $breadcrumb.value}</span></a>
                        <span class="arrow">{xen:if @uix_breadcrumbSeparators, '<i class="uix_icon uix_icon-breadcrumbSeparator"></i>', '<span>&gt;</span>'}</span>
                    </span>
                </xen:foreach>
            </xen:if>

When you are within route /help/, $breadcrumb.href = "help/" instead of canonical "http://mysite.com/help/" like all other routes
 
Strictly speaking, I don't think there's anything wrong with this.

We have used the full version in the past due to some questions about how the structured data is read. Google handles this properly (respecting the base tag). However, Yandex's tester doesn't respect the base tag. Because of that, I have changed these pages. There are some other obscure pages that have this issue but they aren't going to be guest accessible and thus aren't something to be changed at this time.
 
Top Bottom