Nested Page Title Links lead to Wrong Page
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
- Write a block with
[[[[Strawberry]] [[Cake]]]]and exit edit mode with Esc - Click on the resulting link
- 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!)
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?)
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)
Yeah you are right! Very messy. It has always been my nightmare in Logseq, since all my graph relies on intricate/nested node names...