From ef205626e4e17f4982fff5d03e9f4b01f9f38fac Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 11 Sep 2011 23:10:41 -0400 Subject: [PATCH] Work around google+'s bug where they link to the escaped_fragment URL. --- web/js/011-display.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/js/011-display.js b/web/js/011-display.js index cccf1fc..0971a26 100644 --- a/web/js/011-display.js +++ b/web/js/011-display.js @@ -251,6 +251,10 @@ $(document).ready(function() { $(window).hashchange(function() { $("#loading").show(); $("link[rel=image_src]").remove(); + if (location.search.indexOf("?_escaped_fragment_=") === 0) { + location.hash = location.search.substring(20); + location.search = ""; + } photoFloat.parseHash(location.hash, hashParsed, die); }); $(window).hashchange();