We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d777a8a commit ee0e347Copy full SHA for ee0e347
lib/docs/filters/core/normalize_paths.rb
@@ -7,8 +7,11 @@ def call
7
result[:store_path] = store_path
8
9
css('a').each do |link|
10
- next unless (href = link['href']) && relative_url_string?(href)
11
- link['href'] = normalize_href(href)
+ href = link['href']
+ link['href'] = normalize_href(href) if href && relative_url_string?(href)
12
+
13
+ xlink_href = link['xlink:href']
14
+ link['xlink:href'] = normalize_href(xlink_href) if xlink_href && relative_url_string?(xlink_href)
15
end
16
17
doc
0 commit comments