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.

Incorrect URL detection (final slash)

See original GitHub issue

Expected behaviour

URLs automatically converted to links can include a final slash part of the URL.

Actual behaviour

If the URL contains a final slash, the link generated ignores it, breaking some links:

Content-Type: text/html;
 charset=utf-8
Content-Transfer-Encoding: 8bit

<a href="http://google.com">http://google.com</a>/<br>

Steps to reproduce

  1. Select HTML format in the settings
  2. Send a new mail with the following content: http://google.com

Environment

K-9 Mail version: 5.008

Android version: 6.0

Account type (IMAP, POP3, WebDAV/Exchange): IMAP

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Valodimcommented, Mar 16, 2017

There is already a promising PR for this, see #2392

1reaction
a3y3commented, Mar 1, 2017

I’m new to Open Source, and I’d like to work on this issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incorrect URL detection (final slash) · Issue #1223 - GitHub
A bug in the HtmlConverter. Confirmed and found exact behaviour using a unit test: If a link is followed by a new line...
Read more >
When should I use a trailing slash in my URL? - Stack Overflow
No trailing slash is helpful for working with relative sub-paths AND also trailing slash is improper when the url denotes a resource.
Read more >
To slash or not to slash | Google Search Central Blog
Historically, it's common for URLs with a trailing slash to indicate a directory, and those without a trailing slash to denote a file:....
Read more >
Trailing slashes and SEO | SiteGuru
Trailing slashes, used incorrectly, can damage your SEO activities. This article explains how to make the right set-up and avoid SEO damage.
Read more >
MALICIOUS URL DETECTION WITH MACHINE LEARNING
URLs allow Internet users to navigate from one website to another. They comprehensively represent access to content that it is stored in ...
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