How to reproduce it :
- insert search service on home page with following params :
- Général : search contents type : PDF document, audio document, video document
- Rendering :
- contents view : media,
- service rendering : media
- Launch search on the first display
- link : select a page and add a title
On desktop, the link is displayed on the right and top corner.
On responsive, it should be displayed after the results.
I propose this correction :
<xsl:template name="hits"> <div data-ametys-search-role="hits" class="medias-container"> <xsl:for-each select="/search/hits/hit"> <xsl:call-template name="hit"/> </xsl:for-each> </div> <xsl:call-template name="link-mobile"/> </xsl:template> <xsl:template name="link-mobile"> <xsl:if test="/search/link/page"> <xsl:call-template name="link-tag-mobile"/> </xsl:if> </xsl:template> <xsl:template name="link-tag-mobile"> <xsl:if test="/search/link/page"> <a class="btn mobile"> <xsl:attribute name="href"> <xsl:call-template name="link-href"/> </xsl:attribute> <span class="plus">+</span> <xsl:call-template name="link-attribute"/> <span><xsl:call-template name="link-title"/></span> </a> </xsl:if> </xsl:template>