Skip to content

Commit f1e4bf5

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 1fa00ac commit f1e4bf5

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
@@ -3,7 +3,8 @@
33
[tabIndex]="-1"
44
[routerLink]="[searchLink]"
55
[queryParams]="addQueryParams$ | async"
6-
(click)="announceFilter(); filterService.minimizeAll()">
6+
(click)="announceFilter(); filterService.minimizeAll()"
7+
rel="nofollow">
78
<label class="mb-0 d-flex w-100">
89
<input type="checkbox" [checked]="false" class="my-1 align-self-stretch filter-checkbox" role="checkbox" tabindex="0"/>
910
<span class="w-100 ps-1 break-facet">

0 commit comments

Comments
 (0)