URLs consist of multiple parts: (wiki)
scheme:[//[user[:password]@]host[:port]][/path][?query][#fragment]
As such, typing //dev.local
doesn't fit into the pattern above, and the omnibox will interpret this as a string to pass to a search engine.
You have three options:
- Be explicit -
http://dev.local
- always the best option
- Give an empty scheme -
://dev.local
- Chrome appears to default to http
- Give the bare hostname -
dev.local
In the third case (with local DNS and Chrome's cooperation) you'll see something like this:
In Chromium, we decided that consistency and speed was best, and given that the range of 'single-word inputs meant as searches' dwarfs the number of 'single-word inputs meant as URLs', we default to displaying web search results while doing a background DNS lookup to figure out if a local host exists - if it does, we display a "Did you mean http://input/
" infobar as show below:
