]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
docs: page.xsl: fix FAQ link in subdirectories
authorJán Tomko <jtomko@redhat.com>
Tue, 11 Sep 2012 14:43:34 +0000 (16:43 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 11 Sep 2012 15:36:03 +0000 (17:36 +0200)
Links to the FAQ didn't work on pages in subdirectories, like
devhelp/libvirt-virterror.html or internals/command.html, because
they have had href_base prepended to them.

docs/page.xsl

index fc782a2d24c68f7b7fb4e964775b88cb520953a3..bc8ea2a1bffa4a13fc47b5f036506ba215776248 100644 (file)
@@ -54,7 +54,7 @@
             <xsl:when test="$pagename = a/@href">
               <span class="{$class}"><xsl:value-of select="a"/></span>
             </xsl:when>
-            <xsl:when test="a/@href = 'http://wiki.libvirt.org'">
+            <xsl:when test="starts-with(a/@href, 'http://wiki.libvirt.org')">
               <a title="{./span}" class="{$class}" href="{a/@href}"><xsl:value-of select="a"/></a>
             </xsl:when>
             <xsl:otherwise>