I am new to the obsidian and trying to organize all the notes I have in the same folder.
I have set the Folder to create new notes in to a specified folder notes.
Those two kinds of links work differently when creating a note.
[[AWS]] → create a new note at <Vault folder>/notes/AWS.md
[[AWS/EC2]] → create a new note at <Vault folder>/AWS/EC2.md
What I expected is all the notes should be created inside the notes folder I chose. So [[AWS/EC2]] should create note at <Vault folder>/notes/AWS/EC2.md
That’s just the default location for any new notes you’d like to create in your vault (e.g.: when you trigger the command Create new note)
So, this is why, when clicking on the link [[AWS]], the new note is indeed created following the path <Vault folder>/notes/AWS.md as Obsidian, in that case, uses the default location you’ve set up to know where to create a note titledAWS …
But, if you use the path of a note in your link, like you did with [[AWS/EC2]] and then click on it, Obsidian will create the note following that exact path, bypassing the default location you indicated in its settings …
If you want to use the path of a note in your link, you should then use: [[notes/AWS/EC2]] which when clicked, if the note doesn’t exist, will create a note titled EC2 under notes > AWS.
(The path, in this “type” of links, is always interpreted by Obsidian as the “full path”: i.e.: the path of a note, relative to the vault’s root)