File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ def all_active
15
15
end
16
16
17
17
def by_id ( id )
18
- find { |i | i . id == id . to_s } || ( raise "no such distro '#{ id } '" )
18
+ id = id . to_s . gsub ( '%2E' , '.' )
19
+ find { |i | i . id == id } || ( raise "no such distro '#{ id } '" )
19
20
end
20
21
alias [] by_id
21
22
@@ -77,6 +78,10 @@ def deprecated?
77
78
config [ 'deprecated' ] . present?
78
79
end
79
80
81
+ def url_safe_id
82
+ id . gsub ( '.' , '%2E' )
83
+ end
84
+
80
85
private
81
86
82
87
attr_reader :config
Original file line number Diff line number Diff line change 2
2
3
3
<% if distro.deprecated? %>
4
4
<span class ="text-warning "> Deprecated
5
- <%= link_to deprecated_distro_path_path ( distro . id ) do %>
5
+ <%= link_to deprecated_distro_path_path ( distro . url_safe_id ) do %>
6
6
< i class ="bi bi-question-circle-fill "> </ i >
7
7
<% end %>
8
8
</ span >
You can’t perform that action at this time.
0 commit comments