daviddengcn / gcse

Project for Go Search, a search engine for finding popular and relevant packages.
http://go-search.org/
BSD 2-Clause "Simplified" License
277 stars 45 forks source link

do not open links in new windows #10

Closed mnagel closed 10 years ago

mnagel commented 11 years ago

many links open in new windows. in my humble opinion this is not wanted always (and seldom in my case).

as current browsers make it easy to force the creation of a new window/tab (e.g. hold ctrl or use the middle mouse button) but not so easy to prohibit the creation of a new tab/window, i suggest that http://go-search.org/ should not create new windows by default and everyone who wants new tabs can do so by pressing ctrl.

daviddengcn commented 11 years ago

How about all inner links(links to pages within go-search.org) opened in same window, while links to other site opened in new window?

mnagel commented 11 years ago

That would be an improvement, but even for external links I do not really see the point in spawning new windows. If I want a new window, I can get one with ctrl-click. If (without a new window) I want to go back from the project's page to it's gcse page I can voluntarily use the browser's back button.

I think this whole new window thing is rarely useful. Most of the time it is abused by marketers who fear that they drive away business if users are not forced to come back to the original page after closing the external link. Maybe it works, however in my opinion this is akin to a pop-under, and I think we all agree that pop-unders are evil.

daviddengcn commented 11 years ago

Reconsidering this problem, I've made the following policy:

Since search is not perfect, people have to open an item, check, and maybe come back for another one. Although ctrl-click is cheap, closing a windows is also not very expensive(ctrl+w).