obsidian-rpg-manager icon indicating copy to clipboard operation
obsidian-rpg-manager copied to clipboard

[Bug]: Links break when renaming a file

Open krolloc1 opened this issue 1 year ago • 1 comments

Check for existing bug reports before submitting.

  • [X] I searched for existing Bug Reports and found no similar reports.

Expected Behavior

Rename a element and all elements linked to it should update their links

Current behaviour

Rename an element, links get broken in other linked elements. The page then doesn't render.

Reproduction

Rename an element, in the case and adventure element. Linked sessions don't render afterwards.

Which Operating Systems are you using?

  • [ ] Android
  • [ ] iPhone/iPad
  • [X] Linux
  • [ ] macOS
  • [ ] Windows

Obsidian Version Check

1.4.16

Plugin Version

4.1.12

Confirmation

  • [X] I have disabled all other plugins and the issue still persists.

Possible solution

No response

krolloc1 avatar Dec 08 '23 13:12 krolloc1

Hi @krolloc1

I have noticed the issue you are reporting and I have already dug deeper into the it.

TL;DR

When obsidian sends a message that a file is updated, I update the links in the rest of the files, but they are being updated by obsidian themselves, so the two updates clash and the data loses some bits.

Solution

Migrate from using the file path as identifier for the element to a uuid based.

Challenges

Time

Priority

High

carlonicora avatar Dec 10 '23 15:12 carlonicora