question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Email link gets parsed as relative link

See original GitHub issue

Bug report

Steps to reproduce

Insert a mailto: link in a markdown file, e.g.

Send me an [e-mail](mailto:some@email.com)

Repl: https://codesandbox.io/s/saber-email-link-qb07d

What is expected?

The rendered HTML link should be

Send me an <a href="mailto:some@email.com">e-mail</a>

What is actually happening?

The root domain is added before the link

Send me an <a href="https://current-domain.com/mailto:some@email.com">e-mail</a>

Other relevant information

  • Result of running saber -v: 0.9.1
  • Does this issue occur when all plugins are disabled? Yes

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
egoistcommented, Sep 29, 2019

Fixed in v0.10.0

1reaction
gaoryrtcommented, Oct 10, 2019

It just opens a new email window sent to //some@email.com, the double slash (//) won’t be considered as a relative link, which lead to this bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parse the relative link and absolute link using python
Just relative path. So I dont know how to get those relative links. My full project is in: https://github.com/MuneebKalathil/MaD.
Read more >
How to link pages using relative URL in HTML? - Tutorialspoint
With relative URL we start automatically from the address the browser currently at then we add path components and then extension. Explicitly ...
Read more >
Medium.com links parsed as mail links · Issue #161 - GitHub
Although in this case the link does not begin with a protocol, so it counts as a relative URL without a base, which...
Read more >
Convert Relative Url to Absolute Url
My fix was to run my URL through tinyURL or go.USA.gov. That shortened URL was not recognized by SharePoint and my images showed...
Read more >
URL handling options | Docs - TinyMCE
This will convert all URLs within the same domain to relative URLs. The URLs will be relative from the document_base_url.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found