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

show correct breadcrumb in news page for the time that there is a project selected

Behrokh Satarnejadfebb6a339e38
diff --git a/app/views/news/index.html.erb b/app/views/news/index.html.erb
index 8264d568e9b..778785c31a0 100644
--- a/app/views/news/index.html.erb
+++ b/app/views/news/index.html.erb
@@ -33,7 +33,9 @@ See COPYRIGHT and LICENSE files for more details.
<%=
render Primer::OpenProject::PageHeader.new do |header|
header.with_title { t(:label_news_plural) }
- header.with_breadcrumbs([t(:label_news_plural)])
+ header.with_breadcrumbs([{ href: home_path, text: I18n.t("label_home")},
+ *([href: project_overview_path(@project.id), text: @project.name] if @project),
+ t(:label_news_plural)])
end
%>
<% if managable %>