Project

General

Profile

Actions

Task #20051

closed

Epic #83559: SEO enhancements in Core

Support the "canonical" tag

Added by Michael Stucki almost 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
SEO
Target version:
Start date:
2009-02-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

TYPO3 should provide built-in support for the "canoncial" tag which was recently introduced by various search engine providers (see links below).

See these URLs:
http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html
http://ysearchblog.com/2009/02/12/fighting-duplication-adding-more-arrows-to-your-quiver/
http://blogs.msdn.com/webmaster/archive/2009/02/12/partnering-to-help-solve-duplicate-content-issues.aspx
(issue imported from #M10486)

Actions #1

Updated by Dennis Geldmacher almost 16 years ago

There is a way by adding it with TS. Perhaps you could test it along some instalations. I think it works great this way. What do you think?

lib.meta.canonical = COA
lib.meta.canonical {
10 < config.baseUrl
10 {
wrap = |/
}
20 = TEXT
20 {
typolink {
parameter.data = TSFE:id
returnLast = url
}
}
wrap = <link rel="canonical" href="|"/>
required = 1
}

Actions #2

Updated by Michael Stucki almost 16 years ago

I did not try but tend to say that this is a wrong attempt.

The canonical URL of every page output type must be the same (print-page, PDF output, RSS feed, HTML, etc.) - as far as I see this is not considered by the above attempt.

However, it could be even more advanced. Say you have a table that lists records, and you can sort it in different ways, then also these pages should all have the same canonical URL.

Actions #3

Updated by Dennis Geldmacher almost 16 years ago

Ok, good points. Didn't thought of the more complex scenarios.

I'm sure that you can tweak it more with TS so it fits the special needs of each specific site. But out of the box this would be a nice feature.

I think the best solution would be to let you define the parameters that are allowed to change or generate this URL.

.allowedParams = id,tt_news[cat],L

Actually i don't know how to make this possible but perhaps someone else. ^^

Actions #5

Updated by Dennis Geldmacher over 15 years ago

I found a really good snippet at http://blog.marit.ag/2009/02/23/canonical-tag-fur-die-suchmaschinen/

What do you think of this approach? I think this is the more advanced version of my previous snippet.

Actions #6

Updated by Steffen Müller over 15 years ago

Nitpicking:

A table with top 100 movies has a different meaning than a table with worst 100 movies. Although it is the same data (movies + rating) just sorted in a opposite order, I'd say this is two different aspects which should be expressed with two URIs.
http://www.imdb.com/chart/top
http://www.imdb.com/chart/bottom

What's the matter? We should keep in mind to leave this decision to the admin and give him the power of configuration.

Actions #7

Updated by Mathias Schreiber almost 10 years ago

  • Description updated (diff)
  • Category deleted (Communication)
  • Status changed from New to Accepted
  • Assignee set to Benni Mack
  • Target version changed from 0 to 7.0
  • PHP Version changed from 4.3 to 5.5

Should be part of the whole "seo_basics get's standard" thing.

Actions #8

Updated by Mathias Schreiber almost 10 years ago

  • Target version changed from 7.0 to 7.1 (Cleanup)
Actions #9

Updated by Benni Mack over 9 years ago

  • Target version changed from 7.1 (Cleanup) to 7.4 (Backend)
Actions #10

Updated by Susanne Moog over 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #11

Updated by Benni Mack about 9 years ago

  • Target version changed from 7.5 to 8 LTS
Actions #12

Updated by Riccardo De Contardi over 8 years ago

  • Category set to Frontend
Actions #13

Updated by Riccardo De Contardi over 7 years ago

  • Target version changed from 8 LTS to 9.0
Actions #14

Updated by Benni Mack almost 7 years ago

  • Target version changed from 9.0 to 9.1
Actions #15

Updated by Riccardo De Contardi almost 7 years ago

  • Parent task set to #83559
Actions #16

Updated by Susanne Moog almost 7 years ago

  • Target version changed from 9.1 to 9.2
Actions #17

Updated by Björn Jacob almost 7 years ago

IMHO we can close this ticket. This is already part of https://github.com/haassie/seo and as far as I understood, this repo will be part of the core soon ;)

Actions #18

Updated by Benni Mack over 6 years ago

  • Target version changed from 9.2 to 9.3
Actions #19

Updated by Richard Haeser over 6 years ago

  • Assignee changed from Benni Mack to Richard Haeser
  • Target version changed from 9.3 to 9 LTS
Actions #20

Updated by Richard Haeser about 6 years ago

  • Tracker changed from Feature to Task
  • TYPO3 Version set to 9
  • PHP Version deleted (5.5)

We will add this to the hreflang feature because at the end it is the same as the hreflang link of the current language.

Actions #21

Updated by Richard Haeser about 6 years ago

  • Category changed from Frontend to SEO
Actions #22

Updated by Gerrit Code Review about 6 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58271

Actions #23

Updated by Gerrit Code Review about 6 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58271

Actions #24

Updated by Richard Haeser about 6 years ago

  • Assignee changed from Richard Haeser to Kevin Appelt
Actions #25

Updated by Gerrit Code Review about 6 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58271

Actions #26

Updated by Gerrit Code Review about 6 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58271

Actions #27

Updated by Gerrit Code Review about 6 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58271

Actions #28

Updated by Gerrit Code Review about 6 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58271

Actions #29

Updated by Gerrit Code Review about 6 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58271

Actions #30

Updated by Gerrit Code Review about 6 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58271

Actions #31

Updated by Gerrit Code Review about 6 years ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58271

Actions #32

Updated by Gerrit Code Review about 6 years ago

Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58271

Actions #33

Updated by Gerrit Code Review about 6 years ago

Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58271

Actions #34

Updated by Gerrit Code Review about 6 years ago

Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58271

Actions #35

Updated by Gerrit Code Review about 6 years ago

Patch set 13 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58271

Actions #36

Updated by Gerrit Code Review about 6 years ago

Patch set 14 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58271

Actions #37

Updated by Gerrit Code Review about 6 years ago

Patch set 15 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58271

Actions #38

Updated by Kevin Appelt about 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #39

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF