Bug 407558

Summary: Falkon thinks every string containing a dot is a URL
Product: [Applications] Falkon Reporter: Jan Przybylak <jplx256>
Component: generalAssignee: David Rosca <nowrep>
Status: REPORTED ---    
Severity: normal CC: fincer89
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jan Przybylak 2019-05-15 13:14:55 UTC
SUMMARY
Falkon thinks every string containing a dot is a URL. Therefore, in the combined search/addres bar, a string with a dot will not be send to a search engine, it tries to open the page instead (which of course doesn't exist in this case)

STEPS TO REPRODUCE
1. Enter something.something into the search/address bar
2. Press enter

OBSERVED RESULT
Falkon will try to load a page that does not exist.

EXPECTED RESULT
Falkon recognises that the letters after the dot are not a valid TLD and therefore treats the string like a regular search query.

PROPOSED SOLUTION
Don't treat every string containing a dot like a URL. Check if the URL is valid, for example by comparing it to a list of valid TLDs. If it is not valid, treat it like a search query.
Also automatically treat every string beginning with `https://` as a URL.