forked from bofh/fetsite
absolut url helper
This commit is contained in:
@@ -94,4 +94,12 @@ end
|
||||
end
|
||||
raw(html)
|
||||
end
|
||||
def absurl(path)
|
||||
if path.nil?
|
||||
return nil
|
||||
end
|
||||
url=URI(root_url)
|
||||
url.path=path
|
||||
return url
|
||||
end
|
||||
end
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="shortcut icon" href="logo2014_64.png">
|
||||
<link rel="shortcut icon" href="<%= absurl("/logo2014_64.png")%>">
|
||||
<!--<link rel="shortcut icon" href="http://www.fet.at/favicon.ico">-->
|
||||
<!---->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user