[libvirt] [PATCH] docs: Use href_base in absolute links

Martin Kletzander mkletzan at redhat.com
Wed Dec 14 10:55:35 UTC 2016


That way all links work even if you click them in a subdirectory.

Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---
 docs/page.xsl | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/docs/page.xsl b/docs/page.xsl
index fcb51916ce25..1d662c670686 100644
--- a/docs/page.xsl
+++ b/docs/page.xsl
@@ -104,9 +104,9 @@
           </div>
           <div id="jumplinks">
             <ul>
-              <li><a href="downloads.html">Download</a></li>
-              <li><a href="contribute.html">Contribute</a></li>
-              <li><a href="docs.html">Learn</a></li>
+              <li><a href="{$href_base}downloads.html">Download</a></li>
+              <li><a href="{$href_base}contribute.html">Contribute</a></li>
+              <li><a href="{$href_base}docs.html">Learn</a></li>
             </ul>
           </div>
           <div id="search">
@@ -122,8 +122,8 @@
           <div id="contact">
             <h3>Contact</h3>
             <ul>
-              <li><a href="contact.html#email">email</a></li>
-              <li><a href="contact.html#irc">irc</a></li>
+              <li><a href="{$href_base}contact.html#email">email</a></li>
+              <li><a href="{$href_base}contact.html#irc">irc</a></li>
             </ul>
           </div>
           <div id="community">
@@ -136,7 +136,7 @@
             </ul>
           </div>
           <div id="conduct">
-            Participants in the libvirt project agree to abide by <a href="governance.html#codeofconduct">the project code of conduct</a>
+            Participants in the libvirt project agree to abide by <a href="{$href_base}governance.html#codeofconduct">the project code of conduct</a>
           </div>
           <br class="clear"/>
         </div>
-- 
2.11.0




More information about the libvir-list mailing list