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