Browse Source

Fix internal links to method reference

Jasper van Merle 7 years ago
parent
commit
d1f3322fcc
1 changed files with 5 additions and 0 deletions
  1. 5 0
      lib/docs/filters/express/clean_html.rb

+ 5 - 0
lib/docs/filters/express/clean_html.rb

@@ -42,6 +42,11 @@ module Docs
           node.parent.content = node.parent.content
         end
 
+        # Fix links to the method reference
+        css('a').each do |node|
+          node['href'] = node['href'].sub('4x/api', 'index')
+        end
+
         doc
       end
     end