Pasted images not saved into the correct associated note folder

When I create a new note in a sub folder (e.g. root > folder1 > subfolder2 > note) and I paste an image from clipboard into that note, the image doesn’t get stored in root > folder1 > subfolder2 and instead just gets dumped into the root. How do I avoid this and have the images automatically saved with the note in the matching folder?

Did you set a folder for attachments and set that in Settings? Settings > Files and links > Default location for new attachments ?

I didn’t know about that! That’s fixed it. Gosh I wonder why that’s not the default setting?