fix version links on roadmap (#8936)
* adds an id to the version link to be anchorable * adds an achor element to the link in the version list * whitelists the possible filter parameters for the version list links The solution has an insufficiency in that the browser unnecessarily reloads the page if the user had filtered before and then clicks on a link. I find that acceptable.pull/8941/head
parent
5f0d4df485
commit
8af2d6e582
@ -1,5 +1,8 @@ |
||||
<h3><%= t(:label_version_plural) %></h3> |
||||
|
||||
<% @versions.each do |version| %> |
||||
<%= link_to format_version_name(version), "#{project_roadmap_url}##{version.name}" %><br /> |
||||
<%= link_to format_version_name(version), |
||||
project_roadmap_path({ anchor: link_to_version_id(version) }.merge(params.permit(:completed, |
||||
:with_subprojects, |
||||
type_ids: []).to_h)) %><br /> |
||||
<% end %> |
||||
|
Loading…
Reference in new issue