However many times you type (or otherwise visit) a particular URL at a host, e.g. www.domain.com/foo/bar Firefox suggests the bare host, www.domain.com first if you type the first few letters, e.g. dom in the location bar.
Is it possible to change this behavior to match Chrome, i.e. suggest the highest ranked full URL, without forcing the URL of the host to be the top choice?
Here are steps to reproduce the behavior I'd like to change: On a fresh install/profile of Firefox 59 with no history:
type a full URL that is not simply the domain of a site, e.g. stackoverflow.com/questions
hit enter to load the URL, then close the tab
type the first few letters of the URL, e.g. stac
The first suggestion is stackoverflow.com (see picture). This takes you to stackoverflow.com, not stackoverflow.com/questions. To get the full URL you actually typed, you have to arrow down to the next suggestion (or further if you have search suggestion enabled).
To be clear, stackoverflow.com/questions is just an example. The problem is that the first suggestion is the highest matching host, not the highest matching full URL for all hosts and URLs.
This also annoyed me a lot - in the end I found a workaround, telling firefox to suggest only items from the bookmarks list.
This way, I bookmark the long addresses I want to appear in the list, and the short ones disappear.
The settings are (version 75.0) in about:preferences#privacy, address bar, uncheck browsing history.
Related
In Chrome browser, there is the possibility to define flags for selecting a specific search engine, depending on what you want to use for a current search. In your address bar, you can type for example
w my search term
By typing the w + space, chrome selects Wikipedia as search engine for "my search term". (Of course, having configured that w means Wikipedia.)
Is there a way to get this behaviour in Firefox, too?
To avoid misunderstandings: I know how to set a default search engine in Firefox, but I want to select it ... let's say ... 'dynamically', without the detour via calling the search engine's webpage before and typing in there.
Thanks!
In Preferences -> Search -> Search Shortcuts you can specify a keyword, w in your example.
If you want to add more wikipedia languages, go to wikipedia in that language, search form something and in the results page (doesn't work if it directly redirects to the article) click the ... in the address bar. You should see an Add Search Engine option.
It keeps bothering me that I cannot manage the Keyword for "One-click search engines". The keyword could be displayed as follows in Firefox 38.0.1
Through the help link, I found ways to add/hide/remove search engines. However, it did not give any suggestion on how to modify the search engine.
The practical motivation for me to learn how to change the keyword is that:
Firefox cannot sync "search engines" across different installations. Only bookmarks and add-ons could be synced, so far.
I am using Vimperator with Firefox, where pressing o (or t) followed by TAB, then keyword for search engine, will enable the finishing a search query sequence. Example:
:open google happy 2015
will launch a Google result page searching for "happy 2015".
So, the syntax is: ":open keyword search-pattern".
Can anyone tell me how to change the "keyword" of a search engine? Or, give instruction on how to create a search engine of my own? (either on the web or locally loaded is fine.)
To edit the keyword for a search engine, double-click on the search engine's entry, or highlight it and press F2.
Solution in short, as kindly offered by Brandon Parmenter, goes as follows:
:bmark http://example.com/search#q=%s -keyword=example
Start of the longer/older answer
Though the solution inspired by the following link does not change the entries for search engine, it does offer a fully functional keyword feature.
wikiHow:How to Add a Custom Search Engine to Firefox's Search Bar
Unlike what has been suggested in the external link, no further add-on is needed. The following steps will complete the definition of a search-keyword:
Go to the page on which one can search. (Either google.com, or github.com, or whatever)
Right click the search box (through which one can type search inquiry) and select "Add a Keyword for this search"
Define the keyword and press enter
This is not defining a search engine, but rather a search-keyword. Keywords defined in this way is stored as a Bookmarks entry.
So far, it is yet unclear how would conflicting keywords between search-engines-keywords and one we just defined should be resolved. Hopefully, since Firefox is syncing Bookmarks items, search-keyword may be synced to other installations.
Since the question to modifying the search-engine-keyword is yet unsolved, I will not accept my own answer.
Additionally, if one would be interested to look into the Bookmark entry, %s is the "place-holder" in the "Location" field of such bookmark that will be subsituted by whatever one would like to search.
To programatically change the keyword of a search engine you can do it like this:
var allEngines = Services.search.getEngines()
for (var i=0; i<allEngines.length; i++) {
var currentEngine = allEngines[i];
console.log('name of current engine:', currentEngine.name);
var currentKeyword = currentEngine.alias; // is null if no current key word
}
To change the keyword programtically just set currentEngine.alias
Here is a variable viewer in browser console of allEngines you see its an array and each entry is like this, in this image here one entry is expanded:
If you know the name you can just get the engine by name with var currentEngine = Services.search.getEngineByName('Bing')
I was searching on all my urls using site:www.mysite.com to check if they are all redirecting well, but I found one of the url in google search have www.mysite.com/?SID="long number".
How to remove this url from google
Thanks in advance
It is possible to remove url parameters in google webmastertools.
On the Dashboard, under Crawl, click URL Parameters.
Next to the parameter you want, click Edit. (If the parameter isn’t listed, click Add parameter. Note that this tool is case sensitive, so be sure to type your parameter exactly as it appears in your URL.)
If the parameter doesn't affect the content displayed to the user, select No ... in the Does this parameter change... list, and then click Save. If the parameter does affect the display of content, click Yes: Changes, reorders, or narrows page content, and then select how you want Google to crawl URLs with this parameter. -- URL parameters - Webmaster Tools Help
I am building a new website in Joomla 3 and here is some really weird behavior i just stumbled over…
I get a wrong URL in Menu Items and read more links, saying, e.g
website.de/weOffer/drinks/Read%20Private%20Message/beer.
I would give you a real URL, but the project is still under development and classified.
The /Read%20Private%20Message/ part in the URL obviously does not belong there and gets inserted by joomla by default. The result of course is fatal. Not only the menu items aren't working, the read more links aren't either, all leading to 404 errors !
To go into more detail, here is what i have set up and what i have found out so far.
I have made a category blog, where articles are listed, each with a read more link in it, which works as expected.
Now each full text article should have its own slideshow and a couple of other modules, like a facts box in it.
Thats why, the article itself must show up as a menu item as well, so in the module manager i can select, that a specific slideshow module is used in this specific article only.
Therefore i have created menu items with the type of single article that links to the defined Article.
The main menu represents the page tree, each category blog has links to single articles as children. Some cat blog have cat blogs as children and then articles.
This setup works as expected, as long as i don't set the article menu item as a child of the category blog of the category the article itself belongs to.
Example:
MENU =
we offer(catblog) -> drinks(catblog) -> beer(singlearticle)
ARTICLEMANAGER
beer(category: drinks)
RESULT: wrong URL as above.
I can fix the error, by using rebuild in the menu manager, but thats only half way done. The menu URL is getting fixed, but than i have to go into the article itself, remove the read more and insert it back again, because the read private message doesnt get removed, even when i clear my cache. When i am done re-saving the readmore link, everything works like normal, until i save the article menu item the next time. Read Private Message bug is back again, up for another round.
I am a SuperUser, so i suspect i have all rights possible in joomla...
This must have something to do with Search engine friendly URLS (SEF), since it only occurs when i have SEF and mod rewrite turned on. I am using the default .htaccess file without any changes.
Here are some people with a similar problem, but no satisfying solution is given:
http://forum.joomla.org/viewtopic.php?t=802045
http://www.jevents.net/forum/viewtopic.php?f=31&t=19620
I have read about migration and update errors, leading to the same problem.
I migrated manually (sql backup, change of some path in config file) from local apache to 1&1 apache server, both running PHP 5.4, so i doubt that this is a migration issue Plus the problem also appears when i create new articles and menu items (under the parent category).
Changing aliases in both menu items and article itself does not have any effect.
I really hope somebody could give me a hint, or maybe even just confirm that this is a bug If this is designed behavior than whats the reason for it ?.
I am quite frustrated about it and i don't have that many options left since:
1. SEF is a MUST (to my client)
2. Changing the menu tree structure, so that the linked items are no longer children of their cat block parent destroys my breadcrumbs.
3. rebuild and change every menu item and article manually 2 to 3 times is time consuming, error prone, annoying and i don#t want to sell a product to a client like this, since they want to maintain it for themselves as far as posiible.
Your help is really appreciated !
Greets paad.
A user comments on the page, the comment is posted to their facebook wall. When another facebook user clicks the link to see the comment it links back to the page but with a massive string of numbers on the end.
http://canofclouds.com/thought/?fb_comment_id=fbc_10150505683457013_20914817_10150507783662013#55
The original url was: http://www.canofclouds.com/thought/#55
This is all fine so far though, until the user clicks a button to go to
http://www.canofclouds.com/thought/#56
Instead, it goes to:
http://canofclouds.com/thought/?fb_comment_id=fbc_10150505683457013_20914817_10150507783662013#f25e670a6c
Which is not good - because it doesn't exist. Ideally it would just go to http://www.canofclouds.com/thought/#56
Normally, when the user clicks the next button a flurry of javascript grabs the hash key (in this case #55) then adds 1 to it (to make #56 - yay) and executes an ajax call to grab the new content. This facebook stuff is making things a little complicated though.
Any ideas?
Edit: Even more ideally i could disable the 'fb comments id' altogether.
You shouldn't use hash keys to link to your page. You should use a canonical URL to do so.
There are a few questions here on stack overflow about how to deal with this.
The only way around it if you choose not to make canonical urls, is to do URL Rewriting at the network or web server level.