Restore the scrollTop saving when navigating from one directory to another