Make links in exported wiki HTML files absolute
This commit is contained in:
parent
9e35b24bcd
commit
63d8264320
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue