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

[5.x] Fix asset browser history navigation #10948

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

daun
Copy link
Contributor

@daun daun commented Oct 13, 2024

History navigation currently doesn't work inside the asset browser. Going back and forth updates the url and shows a loading indicator, but it doesn't update the current folder or its contents. This PR re-enables it by watching the selected path prop and updating the current path from the watcher whenever the passed-in path changes.

Closes #10920

@jasonvarga
Copy link
Member

This couldn't possibly have been broken since 2017 when the browser navigation was built. 🤔

@daun
Copy link
Contributor Author

daun commented Oct 14, 2024

@jasonvarga Can't say, I frankly only noticed because a customer kept asking about it 🙃

@jasonvarga
Copy link
Member

Maybe it was? Seems broken all the way back to 3.2. I can't easily test any earlier than that without changing my dev setup.

Funny! Thanks for the fix.

@jasonvarga jasonvarga merged commit ffe4cc1 into statamic:5.x Oct 14, 2024
16 checks passed
@daun daun deleted the fix/asset-editor-history-navigation branch October 14, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Browser history navigation doesn't work in asset browser
2 participants