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>
<title><%=h @page.pretty_title %></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<base href="<%= "#{h Setting.protocol}://#{h Setting.host_name}" %>" />
<style>
body { font:80% Verdana,Tahoma,Arial,sans-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>
</head>
<body>
<%= textilizable @content, :text, :wiki_links => :local %>
<%= textilizable @content, :text, :wiki_links => :local, :only_path => false %>
</body>
</html>