Bugzilla – Attachment 166406 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: specify canonical URL for the main page
Bug-35812-specify-canonical-URL-for-the-main-page.patch (text/plain), 1.41 KB, created by
Martin Renvoize
on 2024-05-08 12:49:24 UTC
(
hide
)
Description:
Bug 35812: specify canonical URL for the main page
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2024-05-08 12:49:24 UTC
Size:
1.41 KB
patch
obsolete
>From 715ac14878793a96092da2c4b3bc71ffb0bbf701 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:20:17 +0100 >Subject: [PATCH] Bug 35812: specify canonical URL for the main page > >Currently main page can be accessed by: >- / >- /index.html >- /cgi-bin/koha/opac-main.pl > >This specifies the canonical link for all of them to be "/", to aid search engines in assessing what's url to put in the index. > >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-main.tt | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >index d23809eae86..a8fdf2c43b4 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >@@ -14,6 +14,7 @@ > [% SET OpacLoginInstructions = AdditionalContents.get( location => "OpacLoginInstructions", lang => lang, library => branchcode || default_branch ) %] > [% INCLUDE 'doc-head-open.inc' %] > <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title> >+<link rel="canonical" href="[% OPACBaseURL | url %]/" /> > [% INCLUDE 'doc-head-close.inc' %] > [% BLOCK cssinclude %][% END %] > </head> >-- >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