Make links in exported wiki HTML files absolute

This commit is contained in:
Holger Just 2011-07-08 21:18:47 +02:00
parent 9e35b24bcd
commit 63d8264320
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
<head> <head>
<title><%=h @page.pretty_title %></title> <title><%=h @page.pretty_title %></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
<base href="<%= "#{h Setting.protocol}://#{h Setting.host_name}" %>" />
<style> <style>
body { font:80% Verdana,Tahoma,Arial,sans-serif; } body { font:80% Verdana,Tahoma,Arial,sans-serif; }
h1, h2, h3, h4 { font-family: "Trebuchet MS",Georgia,"Times New Roman",serif; } h1, h2, h3, h4 { font-family: "Trebuchet MS",Georgia,"Times New Roman",serif; }
@ -16,6 +17,6 @@ h1:hover a.wiki-anchor, h2:hover a.wiki-anchor, h3:hover a.wiki-anchor { display
</style> </style>
</head> </head>
<body> <body>
<%= textilizable @content, :text, :wiki_links => :local %> <%= textilizable @content, :text, :wiki_links => :local, :only_path => false %>
</body> </body>
</html> </html>