Skip to content

ux(inertia): preserve scroll and filter state when navigating back from Resource details #127

Description

@wyzuk

Description

When navigating through subjects/nodes (especially after expanding to SSC + HSC levels) and clicking into a specific resource view, pressing the browser's Back button or returning to the chapter list resets the view and scroll position.

Expected Behavior

Users should be returned to their exact scroll position and active chapter node filters.

Suggested Fix

Use Inertia's remember property or preserveScroll: true / preserveState: true on resource back-links and filter components:

<Link :href="route('subjects.show', subject.id)" preserve-scroll preserve-state>
  ← Back to Subject
</Link>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions