lib/onebox/layout.rb in onebox-1.7.3 vs lib/onebox/layout.rb in onebox-1.7.4
- old
+ new
@@ -40,10 +40,10 @@
def checksum
@md5.hexdigest("#{VERSION}:#{link}")
end
def link
- record[:link]
+ ::Onebox::Helpers.normalize_url_for_output(record[:link])
end
def domain
record[:domain] || URI(link || '').host.to_s.sub(/^www\./, '')
end