http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692019-04-28T23:02:07ZTYPO3 ForgeTYPO3 Core - Feature #88242: Make canonical optionalhttp://forge.typo3.org/issues/88242?journal_id=3992652019-04-28T23:02:07ZChristoph Hendreichinfo@in-session.de
<ul><li><strong>Related to</strong> <i><a class="issue tracker-4 status-5 priority-4 priority-default closed" href="/issues/86545">Task #86545</a>: Make canonical and hreflang optional</i> added</li></ul> TYPO3 Core - Feature #88242: Make canonical optionalhttp://forge.typo3.org/issues/88242?journal_id=3992872019-04-29T13:49:04ZChristoph Hendreichinfo@in-session.de
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed child" href="/issues/87760">Bug #87760</a>: Option to remove params from canonical tag</i> added</li></ul> TYPO3 Core - Feature #88242: Make canonical optionalhttp://forge.typo3.org/issues/88242?journal_id=3992972019-04-29T20:43:13ZRichard Haeserrichard@richardhaeser.com
<ul></ul><p>The chash configuration is used to determine which parameters are used when rendering the link. So all parameters that are relevant to calculate the cHash are kept in generating the url. All other parameters are dropped.</p>
<p>There is a signal slot available where you have the possibility to set the canonical link yourself. You can use the signalName `beforeGeneratingCanonical` for the class `\TYPO3\CMS\Seo\Canonical\CanonicalGenerator`. In that way you can set your own canonical tag and can create the canonical without the type.</p>
<p>I think you can use that for your usecase.</p> TYPO3 Core - Feature #88242: Make canonical optionalhttp://forge.typo3.org/issues/88242?journal_id=3992982019-04-29T20:45:24ZRichard Haeserrichard@richardhaeser.com
<ul><li><strong>Tracker</strong> changed from <i>Task</i> to <i>Feature</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Needs Feedback</i></li><li><strong>Priority</strong> changed from <i>Must have</i> to <i>Could have</i></li><li><strong>Target version</strong> deleted (<del><i>next-patchlevel</i></del>)</li></ul> TYPO3 Core - Feature #88242: Make canonical optionalhttp://forge.typo3.org/issues/88242?journal_id=3993112019-04-29T21:58:31ZChristoph Hendreichinfo@in-session.de
<ul></ul><p>Many thanks for the information, we have already implemented this.<br />In this case we noticed that the canonical and the language data were different.</p>
<p>Example:</p>
<pre><code class="html syntaxhl" data-language="html"><span class="nt"><link</span> <span class="na">rel=</span><span class="s">"canonical"</span> <span class="na">href=</span><span class="s">"https://www.domain.de/de/page/amp/"</span><span class="nt">></span>
<span class="nt"><link</span> <span class="na">rel=</span><span class="s">"alternate"</span> <span class="na">hreflang=</span><span class="s">"de"</span> <span class="na">href=</span><span class="s">"https://www.domain.de/de/page/"</span><span class="nt">></span>
<span class="nt"><link</span> <span class="na">rel=</span><span class="s">"alternate"</span> <span class="na">hreflang=</span><span class="s">"en"</span> <span class="na">href=</span><span class="s">"https://www.domain.de/de/page/"</span><span class="nt">></span>
<span class="nt"><link</span> <span class="na">rel=</span><span class="s">"alternate"</span> <span class="na">hreflang=</span><span class="s">"x-default"</span> <span class="na">href=</span><span class="s">"https://www.domain.de/de/page/"</span><span class="nt">></span>
</code></pre>
<p>If so, should everything run the same for both parameters?</p>
<p>I think it would make sense anyway to present a way to disable this directly via TS. <br />Thus there are still further possibilities of the adjustment directly over Pagetype in the TS. <br />Because a canonical can also be rendered and output via VHS and an on and off switch would be the most efficient here, I think.</p>
<pre><code class="html syntaxhl" data-language="html"> page.config {
canonical = 0
hreflang = 0
}
</code></pre> TYPO3 Core - Feature #88242: Make canonical optionalhttp://forge.typo3.org/issues/88242?journal_id=4078712019-10-15T15:04:11ZPeter Linzenkirchnerinfo@lisardo.de
<ul></ul><p>I would strongly support the solution with typoscript. I am updating an number of old TYPO3 installations end ends up with many duplicate canonicals.</p> TYPO3 Core - Feature #88242: Make canonical optionalhttp://forge.typo3.org/issues/88242?journal_id=4085832019-10-26T09:57:06ZGerrit Code Review
<ul><li><strong>Status</strong> changed from <i>Needs Feedback</i> to <i>Under Review</i></li></ul><p>Patch set 1 for branch <strong>master</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/c/Packages/TYPO3.CMS/+/62122">https://review.typo3.org/c/Packages/TYPO3.CMS/+/62122</a></p> TYPO3 Core - Feature #88242: Make canonical optionalhttp://forge.typo3.org/issues/88242?journal_id=4085892019-10-26T10:39:02ZGerrit Code Review
<ul></ul><p>Patch set 2 for branch <strong>master</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/c/Packages/TYPO3.CMS/+/62122">https://review.typo3.org/c/Packages/TYPO3.CMS/+/62122</a></p> TYPO3 Core - Feature #88242: Make canonical optionalhttp://forge.typo3.org/issues/88242?journal_id=4085922019-10-26T10:56:18ZGerrit Code Review
<ul></ul><p>Patch set 1 for branch <strong>9.5</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/c/Packages/TYPO3.CMS/+/62069">https://review.typo3.org/c/Packages/TYPO3.CMS/+/62069</a></p> TYPO3 Core - Feature #88242: Make canonical optionalhttp://forge.typo3.org/issues/88242?journal_id=4085952019-10-26T11:00:05ZRichard Haeserrichard@richardhaeser.com
<ul><li><strong>Status</strong> changed from <i>Under Review</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="[DOCS] Add hints to disable rendering hreflang and canonical tags In some edge cases you may wan..." href="http://forge.typo3.org/projects/typo3cms-core/repository/1749/revisions/b594b0aae937c54e7335905de3f85e8e758d03f6">b594b0aae937c54e7335905de3f85e8e758d03f6</a>.</p> TYPO3 Core - Feature #88242: Make canonical optionalhttp://forge.typo3.org/issues/88242?journal_id=4123822019-12-23T22:49:01ZBenni Mackbenni@typo3.org
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>