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

Paths when accessing revisions via a linked entry (i.e. Relationship/Entries fieldtype) are incorrect #10034

Closed
Artsiom-Kashyn opened this issue May 10, 2024 · 0 comments · Fixed by #10057

Comments

@Artsiom-Kashyn
Copy link

Bug description

When accessing revisions by navigating to an entry, clicking on a linked entry (via
Relationship/Entries fieldtype), then clicking "View History" and selecting one of the revisions, the collection path points to the original collection, instead of the linked one.

For example articles collection has a linked article_translations entry (via relationship/entries
fieldtype). When opening such linked entry via article form and selecting one of its revisions the revision path points to the
original collection (i.e. articles), instead of article_translations

1_article_form
2_article-translation_form
3_article-translation_form_revisions

How to reproduce

  1. Create an “articles” collection
  2. Configure blueprint and add Relationship/Entries (let’s keep the default handle “entries_field”)
  3. Save blueprint
  4. Create an “article_translations” collection
  5. Edit collection settings for articles and article_translation and enable revisions
  6. Create a new entry in “articles” collection
  7. Create a new entry in “article_translations” collection
  8. Edit and save newly created entry in “article_translations” a few times to create revision history.
  9. Open an entry from “articles” collection and click “link existing item” then select an entry from “article_translations” and save and publish
  10. Click on linked entry (article_translations collection)
  11. Click on view history
  12. Open network tab in dev tools
  13. Select one of published revision history entries

Please note that the request URL directs to the “articles” collection rather than the “article_translations”.

Logs

No response

Environment

Environment
Application Name: Statamic
Laravel Version: 10.48.4
PHP Version: 8.3.3
Composer Version: 2.4.2
Environment: local
Debug Mode: ENABLED
URL: localhost:8000
Maintenance Mode: OFF

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Cache: statamic
Database: pgsql
Logs: stack / daily, stdout
Queue: sync
Session: file

Statamic
Addons: 0
Antlers: regex
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 4.55.0 PRO

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants