@mariusjopen Thanks a lot. I will find a way !
J
Johan
@Johan
Posts
-
Navigate to the last scroll position when coming back to the homepage -
Navigate to the last scroll position when coming back to the homepageI tried something like :
jQuery(document).ready(function($) { $('a.thumb').on('click', function(){ sessionStorage["scrollPosition"] = $(window).scrollTop(); }); $(window).scrollTop(sessionStorage["scrollPosition"]); sessionStorage.clear(); });
but it doesn't work.
-
Navigate to the last scroll position when coming back to the homepage@arminunruh Thanks a lot for your answer. Is there a trick I should use until you implement this functionality?
-
Navigate to the last scroll position when coming back to the homepageAny clue @mariusjopen ? It's for Simon Koy's website http://simonkoy.de
-
Navigate to the last scroll position when coming back to the homepageAfter viewing a projet, I would like to come back to the homepage previous scrolled position when I press my browser back button (history.back()). Since I have a lot of projects displayed on my home, it's quite annoying for the user to come back to the top of the page.
Is there a way I can get around this? I guess using Lightbox addon would do the job, but I would prefer having one page (with a proper url) per project.
If anyone had any idea it would be super nice !
Thanks a lot
Johan