Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking to separate nodes in hierarchies with same name converts links to the same node #165

Open
1 of 2 tasks
Jdogzz opened this issue Nov 13, 2024 · 0 comments
Open
1 of 2 tasks
Labels
bug Something isn't working can reproduce

Comments

@Jdogzz
Copy link

Jdogzz commented Nov 13, 2024

Search first

  • I searched and no similar issues were found

What Happened?

Looks like this is a new bug after the new addition to the namespace feature at logseq/logseq@af55aa9

When writing a block that includes links to nodes in hierarchies with the same name, the links get switched to point to the same node.

Reproduce the Bug

  1. Make a node [[Math Work/Ch. 1]] and a node [[Physics Work/Ch. 1]]
  2. Write a block that links to both of the above nodes. The links should be inserted using the autocomplete menu to ensure that the correct blocks are linked to.
  3. Hover over the links.

Expected Behavior

I expect the links to point to the selected nodes in Math and Physics hierarchies as I specifically selected. Instead they point to the same node, evidently the node that was last written dictates the link heritage.

Screenshots

output.mp4

Browser, Desktop or Mobile Platform Information

OS: NixOS Unstable
Browser: Version 130.0.6723.69 (Official Build, ungoogled-chromium) (64-bit)
Logseq: 0.10.10 b250e26 at test.logseq.com

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!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working can reproduce
Projects
None yet
Development

No branches or pull requests

2 participants