Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): improves pr #9576 by retaining search params in step nav #9604

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

marwinhormiz
Copy link
Contributor

@marwinhormiz marwinhormiz commented Nov 28, 2024

PR #9576 fixes the issue with the ui not retaining the search params when going back to a collection list view after visiting a document, but it only works when going back in the browser and not through the breadcrumbs or 'step nav'. This PR improves it by adding a new query field in the StepNavItem type and making sure that the search params are added to the query field in the List component, so it can be referenced in SetDocumentStepNav component to add it to the new step nav.

marwinhormiz and others added 3 commits November 19, 2024 15:49
…ep nav

PR payloadcms#9576 fixes the issue with not preserving the search params when
going back to the list view after visiting a document, but it only works
by going back in the browser and not through the breadcrumbs or 'step
nav'. This solves it by adding a query field in the context type and
making sure that the url and query is added in the List component
directly.
@github-actions github-actions bot added the stale label Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant