<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[1.5.x],[1.6.x],[1.7.x] Pas de redirection canonical pour page manufacturer &amp; supplier]]></title><description><![CDATA[<p dir="auto">Lorsque vous effectuez une redirection /index.php?controller=manufactuer|supplier (sans id), aucune redirection canonique n'est prise en compte.</p>
<p dir="auto">Ex:<br />
<a href="https://domain.tld/marques" target="_blank" rel="noopener noreferrer nofollow ugc">https://domain.tld/marques</a>  =&gt; mène à la liste des manufacturer (marques)<br />
<a href="https://domain.tld/index.php?controller=manufacturer" target="_blank" rel="noopener noreferrer nofollow ugc">https://domain.tld/index.php?controller=manufacturer</a> =&gt; mène à la liste des manufacturer (marques)</p>
<p dir="auto">Aucun redirection canonique n'intervient dans le second cas<br />
<img src="/assets/uploads/files/1542402459817-seo-amp-url-modifier-manufacturer.png" alt="0_1542402459601_SEO&amp;URL - Modifier   manufacturer.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Seul le cas lorsqu'un id est fourni est implanté dans les contrôleurs.<br />
Remplacer dans ManufacturerController.php:</p>
<pre><code>    public function canonicalRedirection($canonicalURL = '')
    {
        if (Tools::getValue('live_edit')) {
            return;
        }
        if (Validate::isLoadedObject($this-&gt;manufacturer)) {
            parent::canonicalRedirection($this-&gt;context-&gt;link-&gt;getManufacturerLink($this-&gt;manufacturer));
        }
    }
</code></pre>
<p dir="auto">par</p>
<pre><code>    public function canonicalRedirection($canonicalURL = '')
    {
        if (Tools::getValue('live_edit')) {
            return;
        }
        if (!Validate::isLoadedObject($this-&gt;manufacturer) &amp;&amp; (int)Tools::getValue('id_manufacturer')) {
            $this-&gt;manufacturer = new Manufacturer((int)Tools::getValue('id_manufacturer'), $this-&gt;context-&gt;language-&gt;id);
        }
        if (Validate::isLoadedObject($this-&gt;manufacturer)) {
            return parent::canonicalRedirection($this-&gt;context-&gt;link-&gt;getManufacturerLink($this-&gt;manufacturer));
        }
        parent::canonicalRedirection($canonicalURL);
    }
</code></pre>
]]></description><link>https://bb.enter-solutions.net/topic/1076/1-5-x-1-6-x-1-7-x-pas-de-redirection-canonical-pour-page-manufacturer-supplier</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 08:49:40 GMT</lastBuildDate><atom:link href="https://bb.enter-solutions.net/topic/1076.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 Nov 2018 21:10:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [1.5.x],[1.6.x],[1.7.x] Pas de redirection canonical pour page manufacturer &amp; supplier on Mon, 19 Nov 2018 15:58:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/doekia" aria-label="Profile: doekia">@<bdi>doekia</bdi></a></p>
<p dir="auto">Attention il y a eu une grosse coquille dans le code publié plus tôt.<br />
Il est maintenant corrigé mais pensez à le vérifier si vous avez appliqué le patch précédemment</p>
]]></description><link>https://bb.enter-solutions.net/post/1337</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1337</guid><dc:creator><![CDATA[doekia]]></dc:creator><pubDate>Mon, 19 Nov 2018 15:58:16 GMT</pubDate></item><item><title><![CDATA[Reply to [1.5.x],[1.6.x],[1.7.x] Pas de redirection canonical pour page manufacturer &amp; supplier on Sat, 17 Nov 2018 21:17:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eolia" aria-label="Profile: eolia">@<bdi>eolia</bdi></a> au temps pour moi je pensais que le titre était suffisamment clair (manufacturer et supplier)</p>
]]></description><link>https://bb.enter-solutions.net/post/1336</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1336</guid><dc:creator><![CDATA[doekia]]></dc:creator><pubDate>Sat, 17 Nov 2018 21:17:36 GMT</pubDate></item><item><title><![CDATA[Reply to [1.5.x],[1.6.x],[1.7.x] Pas de redirection canonical pour page manufacturer &amp; supplier on Mon, 19 Nov 2018 16:08:54 GMT]]></title><description><![CDATA[<p dir="auto">Comme ces 2 là font toujours la paire, la même ligne est à ajouter dans SupplierController.php <img src="https://bb.enter-solutions.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=ee3aeb0be1c" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
<pre><code>    public function canonicalRedirection($canonicalURL = '')
    {
        if (Tools::getValue('live_edit')) {
            return;
        }
        if (!Validate::isLoadedObject($this-&gt;supplierr) &amp;&amp; (int)Tools::getValue('id_supplier')) {
            $this-&gt;supplier = new Supplier((int)Tools::getValue('id_supplier'), $this-&gt;context-&gt;language-&gt;id);
        }
        if (Validate::isLoadedObject($this-&gt;supplier)) {
            parent::canonicalRedirection($this-&gt;context-&gt;link-&gt;getSupplierLink($this-&gt;supplier));
        }
        parent::canonicalRedirection($canonicalURL);
    }
</code></pre>
]]></description><link>https://bb.enter-solutions.net/post/1335</link><guid isPermaLink="true">https://bb.enter-solutions.net/post/1335</guid><dc:creator><![CDATA[eolia]]></dc:creator><pubDate>Mon, 19 Nov 2018 16:08:54 GMT</pubDate></item></channel></rss>