Comments (3)
@ghgr hello, thank you for further testing. The previous fix was unescaping the URL in an incorrect place which then made it impossible to find the correct URL in HTML to replace. Bill Gates is now getting properly replaced.
from trilium.
Hello, thank you for the detailed report, should be fixed in the next patch release.
from trilium.
Thank you @zadam !
Just a quick heads up, since you're now escaping the url, the function replaceUrl
in notes.js:514
is not matching the original url, and therefore cannot replace the original link with the local one (at api/attachments/...
). That means that the image is downloaded, but not linked in the note.
I tried replacing quotedUrl
with url
but still doesn't work.
In order to replicate:
- Create a new note
- Go to this linkedin profile (doesn't matter which one, let's take Bill Gates as an example): https://www.linkedin.com/in/williamhgates/
- Right click on his profile picture and "Copy Image"
- Paste into Trilium
- The image shows
- Go to "Note Source"
- See that's pointing to the original source, not the local one
api/attachments/...
You can see in the developer console that's making requests to the 3rd party site every time you open the note.
from trilium.
Related Issues (20)
- (Bug report) Older notes not displaying (Evernote imports) HOT 3
- (Feature request) Implement Full-Text Search Using SQLite’s FTS Extension for Better Relevance Sorting
- (Feature request) be able to have back/forward above note text HOT 4
- (Bug report) Smoothing/antialiasing inconsistent with fullscreen on/off HOT 3
- (Feature request) PWA behind authorization HOT 1
- (Feature request) Authorization for synchronization endpoint
- RFC: Synchronization problems in 0.63 HOT 4
- Quick copying of images HOT 4
- (Bug report) Server continues to report sync errors on login HOT 4
- Manaul Pull HOT 1
- ERROR: Current DB version 228 is newer than the current DB version 227 HOT 3
- Announcement: Trilium transitions into maintenance mode HOT 52
- Sync Server HOT 12
- (Bug report) Data loss with failed server sync HOT 1
- Enabling TLS causes "unable to connect" in browser because privkey.pem not found HOT 3
- (Feature request) Flash Cards HOT 1
- Docker environment variable USER_GID doesn't allow you to set an existing group
- (Feature request) CreateNewNote API Documentation is missing 'webView' as note type HOT 1
- (Bug report) Fcitx input leaking when not typing slowly
- Excuse me, how can I make it support multiple languages? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trilium.