Steps to reproduce
- Open a file in Obsidian.
- Type or paste a URL.
- Put a period at the end if there isn’t one already. (I use Chicago style academic citations, which requires URLs to go at the end of citations and requires that all citations end with a period. I don’t know how many other citation styles do this.)
Expected result
I expected the URL to either remain normal text or automatically become a hyperlink. If it became a hyperlink, then I expected only the URL to be a hyperlink. No other part of the citation – including the period at the end – should become part of the URL.
Actual result
The URL becomes a hyperlink, which is great. Unfortunately, the period at the end becomes part of the URL. The hyperlink goes to the wrong URL as a result.
Environment
- Operating system: macOS 10.15.4
- Obsidian version: 0.6.7
- Using custom CSS: Only the Nord community theme.
Additional information
Here is a video demonstration of the bug.
As a suggested solution, automatically omit periods is at the end of a URLs. Simple as that. I don’t think any actual URLs end with a period, and therefore won’t result in undesired behavior.
I can see how this might seem like a small bug because it’s literally just a dot, but broken links are frustrating! Seeing the period become part of the URL is frustrating! Adding spaces between the URLs and period only to remove those spaces later if I want to use the citation… you get the idea. As Obsidian’s usage among academics grows, this is issue likely to become an increasingly common complaint until it’s fixed.