I think you used to be able to do something like this:
graph LR
AAA(AAA Note) --> BBB(BBB Note)
click AAA "/testfile"
I could also do this:
graph LR
B-->E
click E "obsidian://open?vault=Personal&file=testfile"
That would allow me to have a node named “AAA Note” or “E” but it would like to “testfile” on click. With the new class E internal-link syntax, this no longer works. A node with the name “AAA Note” will always link to the note with name “AAA Note”. I have tried the above combinations with internal-link, like so.
graph LR
A-->E
click E "obsidian://open?vault=Personal&file=testfile"
class E internal-link
None of this works.
What I’m trying to do
I’m trying to simply link (on click) to a note (or even external URL) that does not match the name of the node text. This was previously possible with the click event, but does not appear to be anymore.
@wpanther93, it feels good to help a fellow obsidian user!
If I have to guess I would say the reason for this is that Obsidian’s Mermaid version is not the last one… You can check this Mermaid Live Editor example I’ve made where it works with graph. Nowadays it’s working with Mermaid v8.10.2