Re: [PATCH] docs: page.xsl: fix FAQ link in subdirectories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/11/2012 04:43 PM, Ján Tomko wrote:
> 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 |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/docs/page.xsl b/docs/page.xsl
> index fc782a2..bc8ea2a 100644
> --- a/docs/page.xsl
> +++ b/docs/page.xsl
> @@ -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>
> 

ACK, this definitely fixes that and as well for future (not for outside
links, but that shouldn't be our concern). Also pushed.

Martin

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]