RRUI-020 · RapidRailsUI defect

Table `sort_url` does not navigate without a Turbo Frame

The table controller accepts a sort URL but the navigation helper ignores it and only changes a Turbo Frame when one exists.

Openrapid_rails_ui v0.58.1reported 2026-10-05

Upstream triage requested. This was found while following the standard RapidRailsUI installation guide in a vanilla Rails 8 application using Importmap and Tailwind CSS v4.

At a glance

Component`table_controller.js`
ObservedWhen `sort_url` is set without `turbo_frame`, sorting calls `_navigateToSortedUrl()`, which builds from the current location and then finds no frame. No navigation occurs and the configured URL is ignored.
ExpectedSorting should navigate to the configured `sort_url`, using a Turbo Frame when present and a full Turbo/browser visit otherwise.
ImpactServer-side sorting silently does nothing for ordinary full-page tables.

Reproduction

1. Configure a table with `sort_url` and `client_sort: false`, without a `turbo_frame`.\n2. Click a sortable header.\n3. Observe that the sort event fires but the browser URL and page do not change.

Suggested direction

Build query parameters from `sort_url` when present and fall back to `Turbo.visit` or `window.location.assign` when no matching frame exists.

Consumer workaround

Patch `_navigateToSortedUrl()` to use `new URL(this.sortUrlValue || window.location.href, window.location.origin)` and navigate when the frame is absent.