We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8c26fdd + cb97d34 commit 9455b54Copy full SHA for 9455b54
lib/nexmo_developer/app/views/changelogs/index.html.erb
@@ -7,7 +7,8 @@
7
8
<div class="my-3col-grid">
9
<% title[:files].each do |file| %>
10
- <%= link_to changelog_path(folder: title[:title], name: file[:file_title]), class: 'Vlt-card Vlt-card--clickable' do%>
+ <% validate_link = file[:frontmatter]['redirect_to'].present? ? file[:frontmatter]['redirect_to'] : changelog_path(folder: title[:title], name: file[:file_title]) %>
11
+ <%= link_to validate_link, class: 'Vlt-card Vlt-card--clickable' do%>
12
13
<div class="Vlt-card__header">
14
0 commit comments