Skip to content

[BUG] Links are not relative to pasted location #25

@mu-0

Description

@mu-0

When the Obsidian setting New link format is set to Relative path to file, the pasted link is relative the the vault root, not the file into which it is being pasted.

For example, in a vault containing:

folder_1/
- a.md

folder_2/
- b.md

If a heading in b.md is pasted into a.md, the link shows up as [b](folder_2/b.md#...) instead of the desired [b](../folder_2/b.md#...).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions