summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-02-07 20:41:23 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-02-07 20:41:23 +0000
commita0035ba52adde8d4ef06c2a6f8b7c5ba0565a257 (patch)
tree49cdbe969d6de297a963009b9b6926882582c414 /app/helpers
parent2f7944133263cea645db61e4ea6c2581f8201391 (diff)
downloadredmine-a0035ba52adde8d4ef06c2a6f8b7c5ba0565a257.tar.gz
redmine-a0035ba52adde8d4ef06c2a6f8b7c5ba0565a257.zip
Includes favicon in assets pipeline (#39111).
git-svn-id: https://svn.redmine.org/redmine/trunk@22692 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index bb17b8455..4054d3274 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1749,12 +1749,12 @@ module ApplicationHelper
end
def favicon
- "<link rel='shortcut icon' href='#{favicon_path}' />".html_safe
+ favicon_link_tag(favicon_path, rel: "icon shortcut")
end
# Returns the path to the favicon
def favicon_path
- icon = (current_theme && current_theme.favicon?) ? current_theme.favicon_path : '/favicon.ico'
+ icon = (current_theme && current_theme.favicon?) ? current_theme.favicon_path : 'favicon.ico'
image_path(icon)
end