Skip to content

fix(admin): open resource usage links outside of the dialog frame - #4342

Merged
tvdeyen merged 1 commit into
mainfrom
fix/resource-usage-links-turbo-frame
Oct 14, 2026
Merged

tvdeyen merged 1 commit into
mainfrom
fix/resource-usage-links-turbo-frame

Conversation

@tvdeyen

@tvdeyen tvdeyen commented Oct 12, 2026

Copy link
Copy Markdown
Member

What is this pull request for?

The "used on these pages" list in the picture overlay and in the attachment dialog links to the page and element where a resource is used. Both dialogs render inside a Turbo Frame (picture_overlay and alchemy_dialog_frame), so clicking one of those links loaded the page edit screen into the frame, which left a broken page inside the dialog. The links now target _top, so they navigate the whole page to the page editor.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

The picture overlay and the attachment dialog both render inside a Turbo
Frame, so the links to the pages using a resource were loaded into that
frame and showed a broken page edit screen inside the dialog. Targeting
_top makes them navigate the whole page instead.
@tvdeyen
tvdeyen requested a review from a team as a code owner October 12, 2026 20:03
@tvdeyen tvdeyen added the backport-to-8.4-stable Needs to be backported to 8.4-stable label Oct 12, 2026
@codecov

codecov Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.37%. Comparing base (4b67b05) to head (676e128).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4342   +/-   ##
=======================================
  Coverage   98.37%   98.37%           
=======================================
  Files         362      362           
  Lines        9646     9646           
=======================================
  Hits         9489     9489           
  Misses        157      157           
Flag Coverage Δ
mariadb 96.97% <ø> (ø)
mysql 95.86% <ø> (ø)
postgresql 95.86% <ø> (ø)
sqlite 95.86% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tvdeyen
tvdeyen merged commit 4c6da5a into main Oct 14, 2026
31 checks passed
@tvdeyen
tvdeyen deleted the fix/resource-usage-links-turbo-frame branch October 14, 2026 06:59
@alchemycms-bot

Copy link
Copy Markdown

💚 All backports created successfully

Status Branch Result
✅ 8.4-stable

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

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

Labels

backport-to-8.4-stable Needs to be backported to 8.4-stable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants