{"id":2318,"date":"2011-12-20T21:00:43","date_gmt":"2011-12-20T19:00:43","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=2318"},"modified":"2011-12-20T21:00:43","modified_gmt":"2011-12-20T19:00:43","slug":"bug-relslbs-links-to-particularly-wiki-pages-for-images","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2011\/12\/20\/bug-relslbs-links-to-particularly-wiki-pages-for-images\/","title":{"rendered":"Bug: rel=&#8221;slb&#8221;&#8217;s links to (particularly wiki) pages for images"},"content":{"rendered":"<p>It looks like 1.6.1 now automatically adds a rel=&#8221;slb&#8221; (plus some slb_group) to image links pointing to url&#8217;s ending in a known image postfix. While a nice idea in theory, this does not work well with links pointing to non-image content that ends in an image postfix.<\/p>\n<p>Steps to reproduce:<br \/>\n1. Create an image link pointing to a <a href=\"https:\/\/secure.wikimedia.org\/wikipedia\/commons\/wiki\/File:Hindenburg_burning.jpg\">picture page in Wikimedia Commons<\/a>.<br \/>\n2. Try clicking the link with SLB activated.<\/p>\n<p>What happens:<br \/>\nSLB tries to lightbox the Commons page.<\/p>\n<p>What I expect to happen:<br \/>\nI&#8217;d expect SLB not to mess with the link so that when I click the image, I&#8217;m taken to the Commons page as usual.<\/p>\n<p>Other notes:<br \/>\nI don&#8217;t think there&#8217;s any way around this other than disabling the automatic rel=&#8221;slb&#8221;&#8217;ing feature entirely (which the plugin currently, AFAICS, doesn&#8217;t allow me to do). There&#8217;s no reliable way to determine a link *really* points to an image just by looking at the url.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It looks like 1.6.1 now automatically adds a rel=&#8221;slb&#8221; to links pointing to url&#8217;s ending in an image postfix. This doesn&#8217;t work well with links pointing to non-image content.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1097],"tags":[],"class_list":["post-2318","post","type-post","status-publish","format-standard","hentry","category-keskustelupalstat","sijainti-wordpress-support-forums"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/2318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=2318"}],"version-history":[{"count":2,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/2318\/revisions"}],"predecessor-version":[{"id":2320,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/2318\/revisions\/2320"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=2318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=2318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=2318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}