logseq icon indicating copy to clipboard operation
logseq copied to clipboard

Nested Page Title Links lead to Wrong Page

Open LeonBein opened this issue 2 years ago • 2 comments

Search first

  • [X] I searched and no similar issues were found

What Happened?

When referencing a page that has two other references in its title, such as [[[[Strawberry]] [[Cake]]]] for the page called [[Strawberry]] [[Cake]], clicking on the resulting link leads to a page with missing brackets, in the example it leads to Strawberry]] [[Cake.

Reproduce the Bug

  1. Write a block with [[[[Strawberry]] [[Cake]]]] and exit edit mode with Esc
  2. Click on the resulting link
  3. You are now at page Strawberry]] [[Cake

Expected Behavior

The link should lead to page [[Strawberry]] [[Cake]]

Screenshots

No response

Desktop or Mobile Platform Information

Windows App, Version 0.9.17, revision 645a8d3

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!)

LeonBein avatar Sep 20 '23 14:09 LeonBein

Btw, using links via the graph view works, i.e., it seems as if clicking on links in text and clicking on graph nodes use different logic to determine the target. (I'd assume because the text one also has to determine what part of the text belongs to the link?)

LeonBein avatar Dec 04 '23 15:12 LeonBein

Here is another example:

If the link is `[[[[Butterfly [[Sweep]]]] from [[Half Guard]]]]``

Clicking 'Butterfly' in [[Butterfly [[Sweep]]]] goes to Butterfly [[Sweep]] page (as expected) Clicking 'Sweep' in [[Sweep]] goes to Sweep page (as expected) Clicking 'Half Guard' in [[Half Guard]] goes to Half Guard page (as expected)

Clicking 'from' in [[[[Butterfly [[Sweep]]]] from [[Half Guard]]]] goes to butterfly [[sweep]]]] from [[half guard page (which does not exist)

gbro3n avatar May 18 '24 09:05 gbro3n

Yeah you are right! Very messy. It has always been my nightmare in Logseq, since all my graph relies on intricate/nested node names...

HumanistAtypik avatar Jan 19 '25 18:01 HumanistAtypik