Bugzilla – Attachment 166405 Details for
Bug 35812
Should specify canonical URLs to help search indexers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35812: Add canonical URL for biblio details page
Bug-35812-Add-canonical-URL-for-biblio-details-pag.patch (text/plain), 1.65 KB, created by
Martin Renvoize
on 2024-05-08 12:49:21 UTC
(
hide
)
Description:
Bug 35812: Add canonical URL for biblio details page
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2024-05-08 12:49:21 UTC
Size:
1.65 KB
patch
obsolete
>From 7abfb3c3080516e5177a584b4ffba9b41adb548d Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Micha=C5=82=20Kula?= > <148193449+mkibp@users.noreply.github.com> >Date: Wed, 27 Mar 2024 10:16:06 +0100 >Subject: [PATCH] Bug 35812: Add canonical URL for biblio details page > >This adds a nice canonical URL for search engines to use. Will prevent duplicates with different URL query parameters from getting indexed separately, will also prevent search engine confusion when opac-search.pl redirects to opac-detail.pl when there's just one result. > >Should result in prettier/simpler URLs in the search engines too, plus removal of constant warnings in Google Search Console and other tools. > >Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index 810b4ffe07b..b46bb1f8ed1 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -31,6 +31,7 @@ > > [% INCLUDE 'doc-head-open.inc' %] > <title>Details for: [% INCLUDE 'biblio-title-head.inc' %] › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title> >+<link rel="canonical" href="[% OPACBaseURL | url %]/bib/[% biblio.biblionumber | url %]" /> > [% Asset.css("lib/emoji-picker/css/emoji.css") | $raw %] > [% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %] > [% Asset.css("lib/verovio/midiplayer.css") | $raw %] >-- >2.45.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35812
:
163987
|
163988
|
163989
|
163990
|
164242
|
164243
|
164244
|
164245
|
166404
| 166405 |
166406
|
166407