Bug 271164 - Address bar treats eTLDs as searches instead of URLs
Summary: Address bar treats eTLDs as searches instead of URLs
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-03-18 10:29 PDT by Richard Towers
Modified: 2024-03-19 10:56 PDT (History)
1 user (show)

See Also:


Attachments
Screenshot of webkit nightly build showing the address bar defaulting to a search (262.55 KB, image/png)
2024-03-18 10:29 PDT, Richard Towers
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Towers 2024-03-18 10:29:40 PDT
Created attachment 470418 [details]
Screenshot of webkit nightly build showing the address bar defaulting to a search

Hello,

I'm a developer on GOV.UK, which is the UK Government's primary website.

We've been encountering an issue recently where if a user types a URL with the domain "gov.uk" (like "gov.uk/government" or "gov.uk/ucmove") into the address bar, it defaults to a Google search instead of opening the URL.

This does not happen with links to "www.gov.uk", for example "www.gov.uk/ucmove" correctly requests the URL (and receives a redirect to https://ucmove.campaign.gov.uk, which is expected).

This causes a bit of a problem for us, because departments are in the habit of buying physical advertising (think "banner on the side of a bus") which uses gov.uk/whatever as the short link. When users come to type this in WebKit based browsers, they get a page of search results which may not even include the page the department was advertising (particularly if it's new).

One solution would be for us to switchh to advertising www.gov.uk URLs instead, which we will consider. However, being able to use shorter URLs is nice for physical reasons - it leaves more space on the side of the bus for other messaging / images etc.

I suspect that the issue here is that gov.uk is on the public suffix list as an ICANN domain, making it an effective top-level domain. Similar .uk domains which are not on the public suffix list (such as parliament.uk) do not seem to suffer from this issue.

To reproduce:

- Focus the address bar
- Type gov.uk
- Press escape to clear the context menu
- Press enter to submit
- Observe that a google search page loads

Following the same steps with parliament.uk loads the parliament website, as expected.

Would you consider having domains like gov.uk/whatever load URLs directly, instead of being interpretted as searches?

Thanks very much,
Richard Towers
Comment 1 Alexey Proskuryakov 2024-03-18 15:38:17 PDT
Thank you for the report! The logic for address bar behavior is in Safari, not in WebKit. Please report this to Apple via Feedback Assistant.
Comment 2 Richard Towers 2024-03-19 02:36:51 PDT
Thanks Alexey - apologies for raising the issue in the wrong place. I've raised it with Apple, as you suggested.
Comment 3 Alexey Proskuryakov 2024-03-19 10:56:23 PDT
rdar://124998731