lib/nanoc/extra/checking/checks/internal_links.rb in nanoc-3.5.0b1 vs lib/nanoc/extra/checking/checks/internal_links.rb in nanoc-3.5.0b2

- old
+ new

@@ -32,9 +32,13 @@ # Remove target path = href.sub(/#.*$/, '') return true if path.empty? + # Remove query string + path = path.sub(/\?.*$/, '') + return true if path.empty? + # Make absolute if path[0, 1] == '/' path = @site.config[:output_dir] + path else path = ::File.expand_path(path, ::File.dirname(origin))