Skip to content

[Table View] Linked References table view: page refs in the name column render as empty "[[]]" (list view is fine) #1407

Open
logseq/logseq
#13885

Description

@langzhou

Search first

  • I searched and no similar issues were found

What Happened?

In a DB graph, a block referencing a journal page (e.g. [[2026-09-21]] is here) renders correctly in the Linked References list view — 2026-09-21 is here, as a link. Switching the same view to table renders the name column as literal text with the ref text gone:

[[]] is here

Trigger: this only reproduces after changing the journal date format in Settings (:logseq.property.journal/title-format). Graphs that never changed the format are not affected — the list view stays correct in both cases.

Screenshots:

Image Image

Reproduce the Bug

  1. In a DB graph whose journal pages were created under one journal date format (e.g. the default MMM do, yyyy, pages stored as Sep 21st, 2026), reference a journal page from a block: [[2026-09-21]] is here
  2. Open the journal page → Linked References → list view: the date renders as a correct page link
  3. Settings → change the journal date format (e.g. to yyyy-MM-dd). Note: changing the format does not rename existing journal pages
  4. Back on the journal page → switch the Linked References view to table
  5. The name column now shows [[]] is here — the page ref text is missing

Expected Behavior

The table name column should render the journal date as a page link exactly like the list view does (e.g. 2026-09-21 is here), regardless of whether the journal date format was changed after the pages were created.

Browser, Desktop or Mobile Platform Information

Operating System: Windows 11, Desktop app
Logseq 2.0.2

Additional Context

Additional analysis (code-level, master 22a29b30de)

  1. The table name column renders the :block/title string via mldoc (inline-title) with config {:table? true :block/uuid} — notably without :block, so page-reference cannot resolve the ref from the row's local :block/refs and must fall back to the async name lookup [:page-identity "<text>"] (frontend.components.views → frontend.components.block).
  2. When that lookup misses, the fallback branch in page-cp-inner renders (or label (:block/name page)). mldoc emits Page_ref labels as [["Plain" ""]], and the joined label is "" — truthy in CLJS — so the cell renders [[]] instead of the page name.
  3. link-cp additionally emits a literal [[]] for blank ref text.
  4. Worker-side, canonical-block/renderer-display-title rewrite stored [[<uuid>]] into [[<page title text>]] via id-ref->title-ref. For journal targets that text is the journal-day computed title using the current Journal class :logseq.property.journal/title-format. Changing the format in Settings does not rename existing journal pages, so the computed text no longer matches those pages' stored :block/name — the name lookup misses and the cell degrades to [[]]. The list view is immune because it parses :block/raw-title (uuid form) and resolves by UUID.

Regression window: table rows switched from entity-forward-map (raw [[uuid]] title, uuid-based resolution) to canonical-block display titles in fb1047d1f8 (2026-07-21), and the first-window preview machinery (renderer-display-title etc.) landed in 09c07b0f23 / #13226 (2026-09-16).

Suggested fixes

  1. Pass :block in the name-column inline-title config so table cells resolve refs locally from :block/refs (same as the list view path, uuid-based, format-change-proof).
  2. Blank-check the label in the fallback: render the page name when (string/blank? label).
  3. Harden the id-ref->title-ref guard ((if (:block/title ref) → (if (seq …)) so empty titles can't produce [[]].

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Activity

  1. changed the title [-][DB] Linked References table view: page refs in the name column render as empty "[[]]" (list view is fine)[/-] [+][Table View] Linked References table view: page refs in the name column render as empty "[[]]" (list view is fine)[/+] on Oct 8, 2026
  2. yuxi-liu-wired commented on Oct 27, 2026

    @yuxi-liu-wired

    Fixed in logseq/logseq#13885 (fix(views): table view search, unresolved page refs and duplicated row buttons). Its description has the cause and the test that pins it; it fails on current master and passes with the fix.

  3. added 5 commits that reference this issue on Oct 28, 2026
    a9070d2
    a2ad26a
    b17f444
    b726d7f
    0a9304c
  4. added 8 commits that reference this issue on Nov 11, 2026
    e849e72
    b4fe5d8
    24d9225
    288b649
    34aa134
    4bd71e4
    cf3e2ae
    1348bd0
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