The symbol ( & ) in note names is replaced by ( & ) which breaks the graph links
SmartSceptic opened this issue · comments
Describe the bug
I use special characters in the name of notes in my knowledge base to determine the type of note.
At least, symbol ( & ) in note names is replaced by ( & ) on graph panel, with breaks the graph links, an lead to unexistent note.
When you go to such a note from the left panel, the graph is not updated, and when you go from the graph to such a note, a blank page opens.
Probably other special characters allowed in Windows for use in file names also lead to a similar error.
To Reproduce
- Create note, with name beginning wit "&"
- Try open note from graf view
- Try open note from left tree panel
Expected behavior
The symbol ( & ) and other windows allowed symbols in note names is not changed in view.
Screenshots
My test few notes in graf (multiple node connections also look weird)
Desktop (please complete the following information):
- OS: Windows 11
- Browser Google Chrom
- Version Latest perlite 1.5.1
I can reproduce this, seems that the html encoding should be replaced to url encoding for the links
Well this will be fixed in release 1.5.2, but only for the ampersand, it seems that the json parser from php will decode some chars which then I need to replace back with JS, which is pretty ugly and need to be done for every (wrong escaped) char.
But at least the ampersand is fixed and I know what to do if there are more chars.
now also fixed for the global graph in 1.5.5