Skip to content

17 · Hard-coded links to aliases that Pathauto replaces (and one wrong link)

Project Local (site template, Annertech)
Component Default content
Category Bug report
Priority Normal
Status Reported upstream as #3629565

Problem/Motivation

  1. Content exports fixed aliases (/housing, /local-tax/...) without pathauto: 0. Pathauto regenerates aliases on import from the title. In English this happens to produce the same aliases; on a translated site it produces e.g. /wohnen. Body text links such as /local-tax/reductions-and-discounts and Klaro's privacy policy link (internal:/privacy-policy) then return 404.
  2. Independent of language, "Check your collection schedule" links to /waste-and-recycling/report-a-missed-collection, but the page's alias is /waste-and-recycling/report-missed-collection → 404 in English too.

Steps to reproduce

  1. Install Drupal CMS with Local.
  2. Open "Check your collection schedule" and click "report a missed collection" → 404.

Proposed resolution

  • Export body links as entity links (entity:node/… / data-entity-uuid), or set pathauto: 0 for content with fixed aliases.
  • Fix the wrong link.

Additional information

Workaround in dcle (TemplateAliasRedirector: 301 redirects from replaced template aliases).

Copy to drupal.org

Issue title:

Hard-coded links to aliases that Pathauto replaces (and one wrong link)

Issue summary (paste it into the "Issue summary" field; project, component, category and priority are in the table above):

<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<ol>
<li>Content exports fixed aliases (<code>/housing</code>, <code>/local-tax/...</code>) without <code>pathauto: 0</code>. Pathauto regenerates aliases on import from the title. In English this happens to produce the same aliases; on a translated site it produces e.g. <code>/wohnen</code>. Body text links such as <code>/local-tax/reductions-and-discounts</code> and Klaro's privacy policy link (<code>internal:/privacy-policy</code>) then return 404.</li>
<li>Independent of language, "Check your collection schedule" links to <code>/waste-and-recycling/report-a-missed-collection</code>, but the page's alias is <code>/waste-and-recycling/report-missed-collection</code> → 404 in English too.</li>
</ol>
<h3 id="summary-steps-reproduce">Steps to reproduce</h3>
<ol>
<li>Install Drupal CMS with Local.</li>
<li>Open "Check your collection schedule" and click "report a missed collection" → 404.</li>
</ol>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<ul>
<li>Export body links as entity links (<code>entity:node/…</code> / <code>data-entity-uuid</code>), or set <code>pathauto: 0</code> for content with fixed aliases.</li>
<li>Fix the wrong link.</li>
</ul>
<h3>Additional information</h3>
<p>Workaround in <code>dcle</code> (<code>TemplateAliasRedirector</code>: 301 redirects from replaced template aliases).</p>