Scroll position should be restored when going back from viewing photo

Note that I’m not sure if this is a bug or just a missing feature.

Expected Behavior

Going to /tag/When/2011, scrolling down, clicking a photo, then clicking back (either the browser’s native back button, a back mouse button, or the back button in PhotoStructure’s UI itself) should restore the scroll position.

Current Behavior

Going back from a photo to gallery view (/tag/When/2011 for example) goes back to the top of the page

Steps to Reproduce

As above.

Environment

Operating system and version: Unraid 6.11.x

PhotoStructure edition: PhotoStructure for Docker

This is totally a bug.

I actually had it fixed with a prior build, but some combination of new versions of vue and vue-router resulted in the prior fix being broken.

I suspect it may require me to render the asset view as an “overlay” so I can maintain the prior page state (that being the tag or search result scroll position) without it reloading.

Thanks for reporting!

1 Like