Skip to content

[BUGFIX] Continuously persist map view state to cookies - #2195

Merged
sebastian-meyer merged 2 commits into
kitodo:mainfrom
beatrycze-volk:image-cookies
Oct 9, 2026
Merged

sebastian-meyer merged 2 commits into
kitodo:mainfrom
beatrycze-volk:image-cookies

Conversation

@beatrycze-volk

Copy link
Copy Markdown
Collaborator

The map's zoom level and center coordinates will now be saved to cookies whenever the map finishes moving. This ensures that the user's last viewed position and zoom level are remembered across sessions, improving user experience.

It needs to be implemented, because unload is unreliable in some browser navigation and back/forward-cache cases.

The robust fix is to save when the map view changes or when navigation starts, rather than relying solely on unload.

The map's zoom level and center coordinates will now be saved to cookies whenever the map finishes moving. This ensures that the user's last viewed position and zoom level are remembered across sessions, improving user experience.

It needs to be implemented, because `unload` is unreliable in some browser navigation and back/forward-cache cases.

The robust fix is to save when the map view changes or when navigation starts, rather than relying solely on `unload`.
@beatrycze-volk beatrycze-volk self-assigned this Oct 6, 2026
@beatrycze-volk beatrycze-volk added the ☇ bug A non-security related bug. label Oct 6, 2026
@sebastian-meyer
sebastian-meyer merged commit 9fa7f69 into kitodo:main Oct 9, 2026
@beatrycze-volk
beatrycze-volk deleted the image-cookies branch October 13, 2026 10:39
sebastian-meyer added a commit that referenced this pull request Oct 28, 2026
Co-authored-by: Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

☇ bug A non-security related bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants