Skip to content

Conversation

@beknownst
Copy link

@beknownst beknownst commented Oct 29, 2025

As described in #6442, linking to tabs or storing tab navigation in history only works for form pages (new/edit).

I also have some use cases where Action::DETAIL is added to actions of CrudControllers and where I want to redirect a user to a specific tab in the detail view. This currently does not work as the logic for activating the tab is present only in form.js.

This PR simply moves the logic from form.js to app.js to make it present on both form and detail pages.
Furthermore it uses a slightly simplified approach to display the first tab with errors and I adjusted some commentary to make it less about forms and more about tabs.

Since I did not find any guidelines regarding PR-creation on the subject of altered frontend assets, I only commited the changes made to the JavaScript files and not those to entrypoints.json, manifest.json and other build files in /public. If this is required, please do let me know.

Fixes: #6442

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

Labels

None yet

1 participant