]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1406451: Set rel=canonical for record and library pages
authorBen Shum <bshum@biblio.org>
Mon, 16 Feb 2015 08:59:00 +0000 (03:59 -0500)
committerBen Shum <bshum@biblio.org>
Mon, 16 Feb 2015 09:29:17 +0000 (04:29 -0500)
commitdf976621fb1e2163eae24f96f74d8809ebd66aaa
treea65c695c4b907e33f3965fb2fc0281bddaed1df2
parent19b03c7da77a917351ab400ad5f41ef7d8668fb2
LP#1406451: Set rel=canonical for record and library pages

Search engines use the "<link rel=canonical>" convention to determine that, no
matter how many variations on a URL you might generate through the likes of
appending &query= parameters, etc, those URLs are all the same as the value of
the href attribute in the <link> element.

Start with a simple implementation that, first, provides a placeholder in the
TPAC base where any page-specific <meta> or <link> (or really, any other <head>
contents) should go; then denotes the current page URL (stripped of all query
params) as the canonical URL for record and library pages.

This should help prevent search engines from crawling endless variations of the
same page, lowering load on Evergreen servers and potentially improving the
ranking of the canonical URLs.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
Conflicts:
Open-ILS/src/templates/opac/parts/base.tt2
Open-ILS/src/templates/opac/library.tt2
Open-ILS/src/templates/opac/parts/base.tt2
Open-ILS/src/templates/opac/record.tt2