Bugzilla – Attachment 164244 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.35 KB, created by
Pedro Amorim
on 2024-04-02 08:47:52 UTC
(
hide
)
Description:
Bug 35812: specify canonical URL for the main page
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-04-02 08:47:52 UTC
Size:
1.35 KB
patch
obsolete
>From 5c5159a61ec4a1744b13e8781608dcf5192b563d 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> >--- > 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.30.2
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