obsidian-ReadItLater icon indicating copy to clipboard operation
obsidian-ReadItLater copied to clipboard

Images don't load when the file name has URL-encoded characters

Open athyfr opened this issue 1 year ago • 0 comments

Please check that this issue hasn't been reported before.

  • [X] I searched previous Bug Reports didn't find any similar reports.

Expected Behavior

Images with URL-encoded characters should show just the same as regular ones.

Current behaviour

Images with URL-encoded characters don't show, as obsidian seems to decode the characters in the reference but not the file.

Steps to reproduce

  1. Download Karl Marx - Wikipedia (or another example) with ReadItLater.
  2. In Obsidian, open the downloaded document.
  3. Scroll down to around line 60.
  4. Observe the 'could not be found' message.

Which Operating Systems are you using?

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

Obsidian Version

1.6.7

Plugin Version

0.5.1

Checks

  • [X] I have tried it with all other plugins disabled and the error still occurs

Possible solution

You could replace the percent sign in the URL-encoding with another character that won't be decoded. An example of something you might use is @. This will solve the issue without introducing any new ones.

athyfr avatar Sep 19 '24 17:09 athyfr