fix: #3637723 Create the /api-docs alias when a recipe installs the module

Issue: https://www.drupal.org/node/3637723

webapi_install() returned before the alias in syncing mode, so a site built from a recipe had no /api-docs path. The alias is now added in every install mode, and a new update hook adds it to sites that miss it.

Proof: on a Webships 3.0.x site /api-docs answers 200 for the administrator after drush updb (404 before).

AI-Generated: Yes

Checkpoints

  • File an issue
  • Fix bugs in code
  • Testing to ensure no regression
  • Automated unit testing coverage
  • Automated functional testing coverage
  • UX/UI designer responsibilities
  • Readability
  • Accessibility
  • Performance
  • Security
  • Documentation
  • Reviewed by human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Release Notes
  • Release

Merge request reports

Loading
Loading