Replace File.basename in URL#relative_path_to because it doesn't handle special characters in URLs well

pull/407/head
nucular 9 years ago
parent 1db5a857dd
commit 3542f5bf29

@ -100,7 +100,7 @@ module Docs
result << '/' if result != '.'
end
else
dest_dir.parent.relative_path_from(base_dir).join(::File.basename(dest)).to_s
dest_dir.parent.relative_path_from(base_dir).join(dest.split('/').last).to_s
end
end

Loading…
Cancel
Save