Mobile/Android: Wiki Link to File Heading When `Use Wikilinks` is False Generates a Markdown Link Missing File Extension

On mobile/android, I have noticed some weird behavior that is inconsistent with desktop and may not even be valid markdown. It seems that when you have your setting for links to be markdown links and then use a wiki link to link to another file’s heading, it will leave off the file extension in the markdown link when it generates the markdown link.

Steps to reproduce

  • Settings → Files and links → Use [[Wikilinks]]
    • Make sure this value is set to false

I also have Settings → Files and links → New link format set to “Relative path to file”. This may or may not be necessary as well, but I do not see why it would be.

  • Create two markdown files in your vault 20240510 and 20240511
  • 20240510 should have the following content:
# header
here is some content
  • Navigate to 20240511
  • Create a wiki link on mobile by typing [[20240510# and then tap on any header (in this case “header”)
  • The generated link for me is missing the .md before the header indicator (i.e [header](20240510#header) despite it being a markdown file

Did you follow the troubleshooting guide? Y (No search results found for this issue from my searching, but I could have used the wrong terms)

Expected result

[header](20240510.md#header)

Actual result

[header](20240510#header)

Environment

SYSTEM INFO:

Operating system: android 14 (samsung SM-G990U1)

Obsidian version: 1.5.12 (134)

API version: v1.5.12

Login status: not logged in

Live preview: off

Base theme: dark

Community theme: none

Snippets enabled: 0

Restricted mode: on

RECOMMENDATIONS:

none


Additional information

I do know that this works on desktop and seems to work on mobile if you do not make a wiki link to a header, so I think that is where the issue is, but since this is JS it could be more convoluted than that.

Please feel free to let me know if you need more info or if there is some kind of setting I missed.

Thanks, will be fixed in the next build.

1 Like

it will be in 1.7.0

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.