Skip to content

Commit d1f3322

Browse files
jmerleThibaut
authored andcommitted
Fix internal links to method reference
1 parent 45c70fb commit d1f3322

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/docs/filters/express/clean_html.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ def call
4242
node.parent.content = node.parent.content
4343
end
4444

45+
# Fix links to the method reference
46+
css('a').each do |node|
47+
node['href'] = node['href'].sub('4x/api', 'index')
48+
end
49+
4550
doc
4651
end
4752
end

0 commit comments

Comments
 (0)