multiple pages with same name
@megayu is already working on this.
Since Aug 17, 2026.
- Dominant language
- No language data
- Stars
- 28
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
### Search first
- [x] I searched and no similar issues were found
### What Happened?
I somehow ended up having multiple pages with the same name.
### Reproduce the Bug
1. the graph was imported from OG
2. i added some new blocks every now and then to test syncing
### Expected Behavior
Since this is not allowed, it should not happen. I think the validation should also fail.
### Screenshots
### Files
Original imported page:
Show page data:
```
{:block/uuid #uuid "6a160dac-b7b2-44c9-98bb-b53708907f8a",
:block/updated-at 1779830188921,
:block/refs [{:db/id 4} {:db/id 22}],
:block.temp/has-children? true,
:block.debug/properties {:block/tags #{"Page"}},
:block/created-at 1779830188921,
:block.debug/refs ["Page" "Tags"],
:block/tags [{:db/id 4}],
:block/title "ChatGPT",
:db/id 1802,
:block.temp/load-status :self,
:block/name "chatgpt"}
```
EDN export:
```
{:pages-and-blocks
[{:page {:block/title "ChatGPT"},
:blocks
[{:block/title
"Produkt von [[6a160dac-8cb5-4399-8b7b-42adac33d9a6]]."}]}
{:page
{:block/title "OpenAI",
:block/uuid #uuid "6a160dac-8cb5-4399-8b7b-42adac33d9a6",
:build/keep-uuid? true}}],
:logseq.db.sqlite.export/export-type :page}
```
The other page:
Show page data:
```
{:block/tx-id 536872225,
:block/uuid #uuid "6a414007-b534-4374-8f41-b4081438211b",
:block/updated-at 1782661127849,
:block/refs [{:db/id 4} {:db/id 22}],
:block.temp/has-children? false,
:block.debug/properties
{:logseq.property/created-by-ref "davidak", :block/tags #{"Page"}},
:block/created-at 1782661127849,
:block.debug/refs ["Page" "Tags"],
:logseq.property/created-by-ref {:db/id 193},
:block/tags [{:db/id 4}],
:block/title "ChatGPT",
:db/id 23718,
:block.temp/load-status :self,
:block/name "chatgpt"}
```
EDN export:
```
{:pages-and-blocks [{:page {:block/title "ChatGPT"}, :blocks []}],
:logseq.db.sqlite.export/export-type :page}
```
(empty page)
### Browser, Desktop or Mobile Platform Information
NixOS 26.05.4193.a50de1b7d8a5
Logseq-linux-x86_64-2.0.1-alpha+nightly.20260710
### Additional Context
The second page seem to have been introduced on 2026-06-29 by copy and pasting a whole days journal from OG to DB.
This also happened with "Social Media". I had 3 pages and 2 blocks with the same name that show up in the suggestions when i type "social " in link. Once i added a link to the blocks, they seem to have become pages and where introduced by that link itself, like a circular dependency. I added links to all 5 of those on that journal page. While editing, i see different UUIDs instead of the title.
I can not reproduce this by adding a block with the text "Social Media" and then create a link to it. That correctly links to the block itself and not a page. The data was probably messed up by an earlier version.
Journal Page Export:
Text:
```
- [[Social Media]]
- [[Social Media]]
- [[Social Media]]
- [[Social Media]]
- [[Social Media]]
```
EDN:
```
{:pages-and-blocks
[{:page {:build/journal 20260712},
:blocks
[{:block/title "[[6a160da9-2a75-4318-9a08-18af913ef3c7]]"}
{:block/title "[[6a464a5b-c3c2-4316-afbc-be7f0f5e2673]]"}
{:block/title "[[6a464a62-2c9a-4802-aedc-686ed8360357]]"}
{:block/title "[[6a464a5b-2a0b-4ebd-a31c-a6f1ee9a9c69]]"}
{:block/title "[[6a464a62-0166-4fdc-890f-b31eee81fe39]]"}
{:block/title ""}]}
{:page
{:block/title "Social Media",
:block/uuid #uuid "6a464a62-0166-4fdc-890f-b31eee81fe39",
:build/keep-uuid? true}}],
:logseq.db.sqlite.export/export-type :page}
```
Page data of all 5 pages:
```
{:block/uuid #uuid "6a160da9-2a75-4318-9a08-18af913ef3c7",
:block/updated-at 1779830185676,
:block/refs [{:db/id 4} {:db/id 22}],
:block.temp/has-children? false,
:block.debug/properties {:block/tags #{"Page"}},
:block/created-at 1779830185676,
:block.debug/refs ["Page" "Tags"],
:block/tags [{:db/id 4}],
:block/title "Social Media",
:db/id 575,
:block.temp/load-status :self,
:block/name "social media"}
{:block/tx-id 536874223,
:block/uuid #uuid "6a464a5b-c3c2-4316-afbc-be7f0f5e2673",
:block/updated-at 1782991451123,
:block/refs [{:db/id 4} {:db/id 22}],
:block.temp/has-children? false,
:block.debug/properties
{:logseq.property/created-by-ref "davidak", :block/tags #{"Page"}},
:block/created-at 1782991451123,
:block.debug/refs ["Page" "Tags"],
:logseq.property/created-by-ref {:db/id 193},
:block/tags [{:db/id 4}],
:block/title "Social Media",
:db/id 24316,
:block.temp/load-status :children,
:block/name "social media"}
{:block/tx-id 536874226,
:block/uuid #uuid "6a464a62-2c9a-4802-aedc-686ed8360357",
:block/updated-at 1782991458945,
:block/refs [{:db/id 4} {:db/id 22}],
:block.temp/has-children? false,
:block.debug/properties
{:logseq.property/created-by-ref "davidak", :block/tags #{"Page"}},
:block/created-at 1782991458945,
:block.debug/refs ["Page" "Tags"],
:logseq.property/created-by-ref {:db/id 193},
:block/tags [{:db/id 4}],
:block/title "Social Media",
:db/id 24507,
:block.temp/load-status :self,
:block/name "social media"}
{:block/tx-id 536874223,
:block/uuid #uuid "6a464a5b-2a0b-4ebd-a31c-a6f1ee9a9c69",
:block/updated-at 1782991451170,
:block/refs [{:db/id 4} {:db/id 22}],
:block.temp/has-children? false,
:block.debug/properties
{:logseq.property/created-by-ref "davidak", :block/tags #{"Page"}},
:block/created-at 1782991451170,
:block.debug/refs ["Page" "Tags"],
:logseq.property/created-by-ref {:db/id 193},
:block/tags [{:db/id 4}],
:block/title "Social Media",
:db/id 24377,
:block.temp/load-status :self,
:block/name "social media"}
{:block/tx-id 536874226,
:block/uuid #uuid "6a464a62-0166-4fdc-890f-b31eee81fe39",
:block/updated-at 1782991458928,
:block/refs [{:db/id 4} {:db/id 22}],
:block.temp/has-children? false,
:block.debug/properties
{:logseq.property/created-by-ref "davidak", :block/tags #{"Page"}},
:block/created-at 1782991458928,
:block.debug/refs ["Page" "Tags"],
:logseq.property/created-by-ref {:db/id 193},
:block/tags [{:db/id 4}],
:block/title "Social Media",
:db/id 24446,
:block.temp/load-status :self,
:block/name "social media"}
```
### Are you willing to submit a PR? If you know how to fix the bug.
- [ ] I'm willing to submit a PR (Thank you!)
Contributor guide
No contributing guide indexed for this repository
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.
Assessment
This issue has not been assessed yet.