With relative Markdown links, pasting a note name and # into [[ autocomplete writes a bare file name instead of a relative path

Steps to reproduce

  1. Settings → Files and links: “Use [[Wikilinks]]” off; “New link format”: “Relative path to file”.
  2. Create ref/Heading Characters.md with ## Done, and a note a/links.md.
  3. In a/links.md, type [[Heading Characters# and pick Done.
  4. Below it, type [[, paste Heading Characters# from the clipboard, and pick Done.

Did you follow the troubleshooting guide?

Y. Reproduced in the sandbox vault.

Expected result

Both links are [Done](../ref/Heading%20Characters.md#Done).

Actual result

The typed one is. The pasted one is [Done](Heading%20Characters.md#Done), without ../ref/. Obsidian still follows it, but other Markdown tools resolve it relative to the note, and it breaks there.

Environment

SYSTEM INFO:
Obsidian version: 1.14.5
Installer version: 1.12.7
Operating system: #1 SMP PREEMPT_DYNAMIC Tue Oct 6 19:13:07 UTC 2026 6.18.54.1-microsoft-standard-WSL2
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none

Additional information

Only a pasted # triggers it: typing [[, pasting Heading Characters, then typing # and picking Done writes the relative path.