Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

fix link to project in news widget

Behrokh Satarnejade065e2129884
diff --git a/app/views/homescreen/blocks/_news.html.erb b/app/views/homescreen/blocks/_news.html.erb
index f51db73fb39..1e7e57a7101 100644
--- a/app/views/homescreen/blocks/_news.html.erb
+++ b/app/views/homescreen/blocks/_news.html.erb
@@ -7,7 +7,7 @@
<li class="widget-box--arrow-multiline">
<%= avatar(news.author, class: "widget-box--avatar news-author-avatar hidden-for-mobile") %>
<div class="widget-box--project">
- <%= "#{link_to_project(news.project)}: " %>
+ <%= safe_join([link_to_project(news.project), ": "]) %>
<%= link_to h(news.title), news_path(news) %>
</div>
<div class="widget-box--author news-author"><%= authoring_at format_date(news.created_at), news.author %></div>