Testing version: 2.0 (10084)
What were you doing: paste external HTTP links into notes
What feature did you use: “Auto fill title when pasting web addresses”
What happened: sometimes Bear doesn’t replace URL with webpage’s title
What did you expect to happen: URLs should always be replaced with its title
To reproduce go to e.g. Wikipedia, the free encyclopedia
Keep follow random links and paste them into Bear.
Every 5-10 tries Bear pastes full URL instead of
[title](URL) in my case
I suppose that issue is related to the time it takes to make HTTP request and get first few data chunks of the page’s HTML to extract the
<title> tag. Probably the timeout for that request in Bear is too low (like 100ms) so depending on the internet connection, it won’t be enough sometimes.
Also I noticed that when the link isn’t replaced with title link, I paste it again and the second time it works. So maybe it’s also some sort of race condition.