Bugzilla – Attachment 163989 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]
[PATCH 3/4] Bug 35812: specify canonical URL for the main page
0003-Bug-35812-specify-canonical-URL-for-the-main-page.patch (text/plain), 1.28 KB, created by
Michał
on 2024-03-27 12:28:28 UTC
(
hide
)
Description:
[PATCH 3/4] Bug 35812: specify canonical URL for the main page
Filename:
MIME Type:
Creator:
Michał
Created:
2024-03-27 12:28:28 UTC
Size:
1.28 KB
patch
obsolete
>From 6fbf7af6792aa19290749e82d9eb0379d53405f7 Mon Sep 17 00:00:00 2001 >From: MichaÅ Kula <148193449+mkibp@users.noreply.github.com> >Date: Wed, 27 Mar 2024 10:20:17 +0100 >Subject: [PATCH 3/4] 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. >--- > 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 d23809eae8..a8fdf2c43b 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.42.0.windows.1 >
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