Taking a photo directly into a note with Relative Path enabled

Steps to reproduce

  1. Set new link path to Relative to File in settings
  2. Set default location for new attachments to in subfolder under current folder
  3. Open a note inside the root
  4. Use Take Photo Or Video option to capture a photo
  5. Open a new note inside a DailyNotes folder (or whatever)
  6. Use Take Photo Or Video option to capture a photo
  7. The photo that is inserted is ![[attachments/image.jpg]] not ![[DailyNotes/attachments/image.jpg]] and so shows a totally different image than the one captured.

Did you follow the troubleshooting guide? [Y/N]

I repeated this in a freshly created test vault

Expected result

The photo captured is inserted into the note

Actual result

A photo captured for another note is inserted instead

Environment


SYSTEM INFO:
Operating system: ios 26.2 (Apple iPhone18,1)
Obsidian version: 1.10.6 (256)
API version: v1.10.6
Login status: not logged in
Language: en
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none

Additional information