Better path alias for Election area nodes
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3585468. --> Reported by: [progga](https://www.drupal.org/user/163062) Related to !32 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Election area nodes currently have a fixed path alias pattern of <code>/election/[node:localgov_election]/[node:localgov_election_area_name]</code>. This may be okay when the parent election node is at <code>/election/[node:localgov_election]</code>. But when the parent election node itself is assigned a parent (i.e. a grand parent of the election area), the election area node's path no longer reflects its parent's path.</p> <p>In other words, when an election node is a located at /foo/election8, its election area nodes should be at /foo/election8/area5 or /foo/election8/area1 rather than at /election/election8/area5 or /election/election8/area1.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Update the URL alias pattern for Election area nodes to refer to its parent node's path instead of a hardcoded <code>/election/parent-title/own-title</code></p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue