Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop chrome from searching when manually typing in local dev addresses

During development today I needed to clear my browsing data to test some cached information. I only selected cached images and files and cookies and plugin options. After this my development environment stopped being recognized the same way in chrome (Version 40.0.2214.91) and started being searched in google instead.

When I type http://0.0.0.0:8080 or even 0.0.0.0:8080/ into the address bar the site is being accessed fine. When I click on links within the local site that point to pages such as http://0.0.0.0:8080/category/index.html I am taken to the correct page. It is only when I try to type in a url such as http://0.0.0.0:8080/category/index.html manually that Chrome decides it should search the web instead of going to the correct page as before. There are no extra spaces on either side of the url.

When testing this in Firefox everything works normally. Nothing has changed in my development environment unless you include the cache and cookie clear in Chrome.

Other similar questions seem to only address the issue from the perspective of the local server(MAMP,XAMP,WAMP) configuration, but I am not using these to serve my site. I am working in a jekyll installation that serves the site for me, and the config.yml values are correct as evidenced by the site behaving normally in Firefox.

like image 358
Bonk Avatar asked Jan 23 '15 15:01

Bonk


People also ask

How do I stop chrome from changing urls?

Go to chrome://chrome/settings/ then scroll down and click 'Show Advance Settings' Uncheck Use a web service to help resolve navigation errors . Recheck the address you are supposed to use, because the URL you are trying to reach looks like a remote address not like the one which is used to access device settings.


1 Answers

Apparently chrome no longer likes the use of 0.0.0.0. Use 127.0.0.1 instead.

See discussion on the subject here https://github.com/jekyll/jekyll/issues/3048

like image 95
Pim Avatar answered Oct 15 '22 11:10

Pim