Skip to content

Commit 3f584dc

Browse files
committed
src/app/shared/search: use nofollow for facet links
Use `rel="nofollow"` on Discovery search facet links to signal to well-behaved bots that they should not crawl facets. Faceted search results are derivative content of primary DSpace objects and cause excessive load on the server and even exhaust your crawl budget on crawlers like Google. See: https://developers.google.com/search/blog/2024/12/crawling-december-faceted-nav See: https://developers.google.com/search/docs/crawling-indexing/crawling-managing-faceted-navigation
1 parent 397c451 commit 3f584dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/shared/search/search-filters/search-filter/search-facet-filter-options/search-facet-option/search-facet-option.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
[tabIndex]="-1"
33
[routerLink]="[searchLink]"
44
[queryParams]="addQueryParams$ | async"
5-
(click)="announceFilter(); filterService.minimizeAll()">
5+
(click)="announceFilter(); filterService.minimizeAll()"
6+
rel="nofollow">
67
<label class="mb-0 d-flex w-100">
78
<input type="checkbox" [checked]="false" class="my-1 align-self-stretch filter-checkbox" role="checkbox" tabindex="0"/>
89
<span class="w-100 pl-1 break-facet">

0 commit comments

Comments
 (0)