<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to deactivate/modify automatic canonical url generator in liferay 7.3?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=123160847" />
  <subtitle>How to deactivate/modify automatic canonical url generator in liferay 7.3?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=123160847</id>
  <updated>2026-04-07T23:56:34Z</updated>
  <dc:date>2026-04-07T23:56:34Z</dc:date>
  <entry>
    <title>RE: RE: How to deactivate/modify automatic canonical url generator in liferay 7.3?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123346840" />
    <author>
      <name>Akhil Raj</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123346840</id>
    <updated>2025-04-18T15:54:17Z</updated>
    <published>2025-04-11T07:44:11Z</published>
    <summary type="html">&lt;p&gt;I found the solution by adding a hook.&lt;/p&gt;
&lt;p&gt;The auto Url generation cannot be deactivated. instead i have used a
  hook to override the service that is building this url patterns in
  page source.&lt;/p&gt;
&lt;p&gt;We have to override the service&lt;/p&gt;
&lt;pre&gt;
LayoutSEOLinkManagerImpl&lt;/pre&gt;
&lt;p&gt;using a hook.&lt;/p&gt;
&lt;p&gt;deploy the hook and then we have to blacklist the original component
  from System settings -&amp;gt; Module container -&amp;gt; Component blacklist&lt;/p&gt;</summary>
    <dc:creator>Akhil Raj</dc:creator>
    <dc:date>2025-04-11T07:44:11Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to deactivate/modify automatic canonical url generator in liferay 7.3?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123342397" />
    <author>
      <name>Messaoud GUERNOUTI</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123342397</id>
    <updated>2025-04-09T17:42:00Z</updated>
    <published>2025-04-08T16:17:37Z</published>
    <summary type="html">&lt;p&gt;@Akhil Raj, please to share the solution if it is founded  &lt;/p&gt;</summary>
    <dc:creator>Messaoud GUERNOUTI</dc:creator>
    <dc:date>2025-04-08T16:17:37Z</dc:date>
  </entry>
  <entry>
    <title>How to deactivate/modify automatic canonical url generator in liferay 7.3?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123160846" />
    <author>
      <name>Akhil Raj</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123160846</id>
    <updated>2025-01-06T17:51:33Z</updated>
    <published>2024-12-31T04:59:23Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;i am using Liferay DXP 7.3 and i have automatically generated
  canonical urls for my site..&lt;/p&gt;
&lt;p&gt;I have 4 locales selected for my site and i want to generate
  canonical urls for only 2 of them..But liferay automatically generates
  canonicals for all the 4 locales selected. Also liferay is not
  appending the language code for the alternate url generated for the
  default language. i have to override this behaviour also..&lt;/p&gt;
&lt;p&gt;How can i achieve this?&lt;/p&gt;
&lt;p&gt;i have tried using a dynamicInclude and generated custom urls
  programatically to top_head.jsp..&lt;/p&gt;
&lt;p&gt;But i have to disable the automatic url generation so that only the
  urls from dynamicinclude appears on the html..How can i deactivate
  automatic canonical url generetaion in liferay?&lt;/p&gt;</summary>
    <dc:creator>Akhil Raj</dc:creator>
    <dc:date>2024-12-31T04:59:23Z</dc:date>
  </entry>
</feed>
