Site Alias Form elements and URL

Created on 25 July 2024, 8 months ago

Problem/Motivation

As the hook_field_widget_form_alter is deprecated, the Site Alias Form has stopped working, making it impossible to configure the Site Alias on the node edit form.

Proposed resolution

  • Decomission micro_path_field_widget_form_alter
  • Decomission alterWidgetElement
  • Rewrite alterEntityForm to add site_alias element.
  • Add validateSiteAlias to validate site_alias element.
  • Exclude automatically saving the alias on sites other than the main site from the node edit form.
  • Add compatibility with Autocomplete Deluxe β†’ form widget that adds/uses parent ['target_id'] form array element.
  • Use canonical main site URLs in processOutbound.

User interface changes

Upon validation error for "Main Site URL alias" highlight the validation error element.

API changes

  • Decomission micro_path_field_widget_form_alter
  • Decomission alterWidgetElement
  • Add validateSiteAlias.
  • Exclude automatically saving the alias on sites other than the main site from the node edit form.

Data model changes

By default, avoid content and canonical URL duplication.

  • As default behavior, only add the main site alias instead of adding site aliases for all published sites.
  • As default behavior, only display the site alias from the main site, instead of the currently active site.
πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΈπŸ‡¦Saudi Arabia martins.bruvelis Thuwal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024