[PATCH 2/4] docs: fix 404 page when fetched from different location

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

 



Error 404 page had relative paths specified for both the image and
stylesheets which caused a problem when requested URL included a
subfolder (e.g. http://libvirt.org/asdf/asdf ). This patch corrects
this behaviour.
---
 docs/404.html.in |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/docs/404.html.in b/docs/404.html.in
index 9363871..66e4c14 100644
--- a/docs/404.html.in
+++ b/docs/404.html.in
@@ -1,5 +1,8 @@
 <?xml version="1.0"?>
 <html>
+  <head>
+    <link rel="stylesheet" type="text/css" href="/main.css" />
+  </head>
   <body>
     <h1>404 page not found</h1>

@@ -15,7 +18,7 @@
     </ul>

     <p class="image">
-      <img src="libvirtLogo404.png" alt="libvirt Logo"/>
+      <img src="/libvirtLogo404.png" alt="libvirt Logo"/>
     </p>


-- 
1.7.8.6

--
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]