Skip to content

Record breadcrumb: return to the view the record was opened from, not the all-records grid #95

Closed

Description

@nicklaunches

Problem

Opening a record from a saved view and then clicking the Base in the breadcrumb drops you on the all-records grid instead of the view you came from.

Steps:

  1. Open a Base and switch to a saved view, for example a kanban view at /dashboard/<space>/base/<slug>/<viewSlug>.
  2. Click a card to open a record. The URL becomes /dashboard/<space>/base/<slug>/<recordId>.
  3. Click the Base name in the breadcrumb (Workspace > <Base> > <record>).

Expected: back on <viewSlug>, the view the record was opened from.

Actual: /dashboard/<space>/base/<slug>, the unsaved all-records table with the All tab selected. Anyone working from a board or filtered view has to reselect it after every record they open.

Cause

The record route reuses the view slot: /base/<slug>/<childId> is either a view or a record, so the view is gone from the URL as soon as a record opens. The breadcrumb then has nothing to return to. In packages/busabase-core/src/domains/dashboard/index.tsx the isRecordRoute and isEditRecordRoute branches of breadcrumbItems hardcode the Base crumb to /base/${activeRecord.base.slug} (or activeBase.slug), with no view.

Proposal

Carry the originating view with the record and use it for the Base crumb:

  • When a record is opened from a view, keep the view in the record URL, e.g. /base/<slug>/<recordId>?view=<viewSlug> (a query param keeps the existing record route and deep links intact).
  • The isRecordRoute, isEditRecordRoute and isNewRecordRoute crumbs link to /base/<slug>/<viewSlug> when view is present and still names an active view, and fall back to today's /base/<slug> otherwise.
  • The record page's Edit link and the post-save redirect pass the same view through, so view, then record, then edit, then save, then breadcrumb still lands on the view.

Browser back already works because history has the view URL; this is only about the breadcrumb link.

Related: #92 (default view per Base) would improve the fallback when no view is carried, but does not fix this on its own: a Base with several views should return to the one you were on, not the default.

Activity

  1. mr-kelly commented on Nov 17, 2026

    @mr-kelly
    Contributor

    Thanks for the write-up and the pointer to #92, and sorry this sat unanswered.

    I checked current main (commit dc049a5). The record breadcrumb still does what you described: the isRecordRoute / isEditRecordRoute branches in packages/busabase-core/src/domains/dashboard/index.tsx link the Base crumb to /base/${slug}, and the record URL still uses the /base/<slug>/<recordId> slot, so the originating view is not carried (no ?view= or similar).

    One related change since you filed this: a bare /base/<slug> now redirects to the Base's leftmost view (#92's area). That means clicking the Base crumb no longer drops you on the unsaved all-records grid — but it also does not return you to the view you opened the record from, which is exactly the gap you called out. Browser back still works because history has the view URL.

    We've logged this as a feature request. I don't have a release date to share yet. We'll update the issue if carrying the originating view lands in a release.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions