Permalink
Browse files

Add html suffix in html template for see keyword

This fixes the links for see keyword in static pages.
  • Loading branch information...
iNecas committed Feb 13, 2013
1 parent 7b6f8d4 commit fe2a53d9f93bc479502f1bb6841afe994484c4f3
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/views/apipie/apipies/method.html.erb
  2. +1 −1 app/views/apipie/apipies/resource.html.erb
@@ -24,7 +24,7 @@
<div>
<% unless @method[:see].empty? %>
- Also see <%= @method[:see].map { |s| link_to(s[:description], s[:link]) }.to_sentence.html_safe %>.
+ Also see <%= @method[:see].map { |s| link_to(s[:description], "#{s[:link]}.html") }.to_sentence.html_safe %>.
<% end %>
<%= raw @method[:full_description] %>
@@ -48,7 +48,7 @@
</div>
<% unless m[:see].empty? %>
- Also see <%= m[:see].map { |s| link_to(s[:description], s[:link]) }.to_sentence.html_safe %>.
+ Also see <%= m[:see].map { |s| link_to(s[:description], "#{s[:link]}.html") }.to_sentence.html_safe %>.
<% end %>
<div id='description-<%= m[:name] %>' class='collapse accordion-body'>

0 comments on commit fe2a53d

Please sign in to comment.