]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/js/mod_display.js
Merge pull request #3251 from rabuzarus/20170320_-_fix_fbrowser
[friendica.git] / view / theme / frio / js / mod_display.js
index 86608821e5cd2ca86190ed1c8742216da5441ad3..ed126d60cdb19f2f4417d1fca9434b9cac30a587 100644 (file)
@@ -4,8 +4,9 @@
 
 // Catch the GUID from the URL
 var itemGuid = window.location.pathname.split("/").pop();
+var itemGuidSafe = itemGuid.replace(/%.*/, '');
 
 $(window).load(function(){
        // Scroll to the Item by its GUID
-       scrollToItem('item-'+itemGuid);
+       scrollToItem('item-' + itemGuidSafe);
 });