X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Fjs%2Fmod_display.js;h=ed126d60cdb19f2f4417d1fca9434b9cac30a587;hb=632d77cfb1ffce8aaddc0134ee232df29f267162;hp=86608821e5cd2ca86190ed1c8742216da5441ad3;hpb=7886de5c393591eaf4e05f2a496a4f40060cb262;p=friendica.git diff --git a/view/theme/frio/js/mod_display.js b/view/theme/frio/js/mod_display.js index 86608821e5..ed126d60cd 100644 --- a/view/theme/frio/js/mod_display.js +++ b/view/theme/frio/js/mod_display.js @@ -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); });