Closed (fixed)
Project:
Facet API
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Dec 2011 at 09:01 UTC
Updated:
13 Jun 2013 at 03:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
cpliakas commentedHi PedroMiguel.
This is interesting, and it may be a good change to explore either as a setting or as the OOB behavior of Facet API links. Changing to a feature request to explore this further.
Regarding your question, the links are generated in the theme_facetapi_link_active() and theme_facetapi_link_inactive() theme functions respectively, which you can override in your theme's template.php file.
Thanks,
Chris
Comment #2
cpliakas commentedNote that these functions have changed between the beta8 and dev versions of the module, so make sure your overrides are reflective of the module version you are using.
Comment #3
PedroMiguel commentedThanks,
Changing the 2 functions do the trick:
It will be nice to have a option on admin menu to "turn nofollow on or off".
Comment #4
cpliakas commentedYes, that approach seems correct. For now you can add those functions to your theme's template.php file replacing "theme" with the name of your module and you should be all set. To get this into core Facet API, I will need someone to add an option to the FacetapiWidgetLinks plugin and have the value passed to the theme functions listed above. If the setting is TRUE, then add the rel="nofollow" attribute to the links. Adding to the "low hanging fruit" list.
Comment #5
cpliakas commentedOn second thought... if the setting is implemented in the widget then we won't have to touch the theme functions. We can simple check the setting logic and add the option to the
$variablesarray in the FacetapiWidgetLinks::buildListItems() function.Comment #6
cpliakas commentedThe article at Faceted Search = SEO Death supports this conversation, so marking this issue as a task since I feel this is pretty important from and SEO standpoint.
Comment #7
PedroMiguel commentedYes, its critical, I ask about this because on the past I already have problems with googlebot indexing lots and lots of pages. Was adiviced by a ex google quality (spam) team member to add the nofollow tag.
Before that have the same imput on google webmaster forums (http://www.google.com/support/forum/p/webmasters/thread?tid=2594f5a8e956... -is not on english the discussion-) and a google employer says I should add a to the page (that we can do easy with meta tags module) but In my opinion its not necessary because we already have that on links.
So, the correct is having the canonical tag to search page index and have the rel='nofollow' on links.
The canonical is provided by core, so the only change on this module is the rel='nofollow' tag.
Sorry about my english ;)
Comment #8
cpliakas commentedThanks for that link. Your English is great! All the information is clear and concise, so thanks.
Comment #9
cpliakas commentedYet another relevant article: http://searchnewscentral.com/20110601167/General-SEO/solving-duplicate-c....
Comment #10
cpliakas commentedThe attached patch adds the setting and defaults to "checked" meaning
rel="nofollow"is added by default.Comment #11
cpliakas commentedInteresting approach by David at #197783: Module makes database balloon in size - avoid logging the guided searches, where it is suggested to only add nofollow when more that one facet is selected. Therefore the top level searches are crawled, but the crawling loops are still prevented.
Comment #12
PedroMiguel commentedThat depend of use cases...
If you use faceted to taxonomy search you end up with 2 taxonomy page versions (duplicate content), the facet result and the taxonomy page itself.
As an option, its a good feature to have, disabled by default, because fit on more use cases.
In realtion to patch:
I dont know if this error is do my reverted changes or the patch itself.
The patch works and all chekboxs are on widgets and nofollow added to urls.
Comment #13
cpliakas commentedThanks for testing. Not sure if the whitespace error is a problem here, as long as the functionality works we are all set. I am going to hold off on the option mentioned in #11, I think the rel="nofollow" is a great first step and I don't want to try to boil the ocean.
Marking as postponed pending completion of #593658: Make the current search block more configurable. That change will introduce additional links which would benefit from this issue as well, so the options should be applied there as well.
Comment #14
cpliakas commentedRevised patch with functionality applied to the changes made in #593658: Make the current search block more configurable.
Comment #15
cpliakas commentedLanguage change in the checkbox label from "Prevent crawlers from indexing ... links" to 'Prevent crawlers from following ... links'
Comment #16
cpliakas commentedBased on the testing in #12 I think this is good to go. The other additions are fairly minor.
Comment #17
cpliakas commentedCommitted at http://drupalcode.org/project/facetapi.git/commit/5847e05.
Comment #19
giorgio79 commentedHere is an idea, so we may be able to remove nofollow, and get seo love
#2018449: Ability to specify facet weight, so we can allow search engines to index facet pages
Comment #20
fagoIf you want to use facet links for SEO, you should probably use #2183757: Hierarchical rel-nofollow on links for search engines.