Skip to content

Queries that use 'current-page' input fail to load results in side-bar #1049

Description

@jbain

Search first

  • I searched and no similar issues were found

What Happened?

I have a generic query that I use across pages to load items related to that page via the current-page input variable. The query is embedded with /node-embed

When opening the page in the main window everything looks great, but when opening in the side bar no results load.

Screen.Recording.2026-08-12.at.12.55.02.PM.mov

Reproduce the Bug

  1. Create a query using current-page input
    Example:
{:title "##Epics"
 :query [:find (pull ?e [:block/title :logseq.property/status :logseq.property/priority])
         :in $ ?ctx-title
         :where
         [?e :block/tags ?t]
         [?t :block/title "Epic"]
         [?prop :block/title "Project"]
         [?prop :db/ident ?attr]
         [?e ?attr ?p]
         [?p :block/title ?ptitle]
         [(clojure.string/lower-case ?ptitle) ?plc]
         [(= ?plc ?ctx-title)]]
 :inputs [:current-page]}
  1. Create a new page and embed the query with /node-embed

  2. Verify the query returns results as expected

  3. Open the page in the side-bar

  4. see that no results load in the side-bar render of the page

Expected Behavior

I expect current-page to resolve consistently in both the main window and the side-bar.

Screenshots

No response

Files

No response

Browser, Desktop or Mobile Platform Information

Desktop nightly 20260728

Additional Context

No response

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

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

Metadata

Metadata

Assignees

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