Renaming a page doesn't update queries using the page
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 45k
- Forks
- 2.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 105
Description
I've seen this for some time, and it's quite a hindrance.
Steps to reproduce:
* create page named `temp test page`
* on some other page, create a query `{{query [[temp test page]]}}`
* confirm that the query above returns the page (yes)
* rename page `temp test page` to `temp test page renamed`
Expected result:
* the query is automatically changed to `{{query [[temp test page renamed]]}}`, and hence still returns the page
Actual result:
* the query still reads `{{query [[temp test page]]}}`, and hence there are now no results
Screenshot: a link has been updated accordingly, but the query has not:

Note: refresh or re-index has no effect, the problem still persists.
Issue https://github.com/logseq/logseq/issues/2397 is similar, but was reported for a case involving templates and cyrillic letters in the page name.
---
LogSeq `Version 0.8.11 (0.8.11)`
MacOS `Darwin Kernel Version 21.6.0`
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files, tests, or entry points are named in the report. Start by reproducing the page rename and query steps, then trace how page renames update links versus query references. Done means the query changes to reference the renamed page and still returns it without requiring refresh or re-indexing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100