Add drupal/rel_to_abs

For daily emails, I want all links to be absolute URLs so they work when
embedded in the sent emails.

This module does this.

As there is no Drupal 11 compatible release, I've had to add the Lenient
Composer endpoint and add patch the rel_to_abs module to make it D11
compatible.

If everything works, I'll update the issue and mark it as RTBC.

https://www.drupal.org/project/rel_to_abs
https://www.drupal.org/docs/develop/using-composer/using-the-drupal-lenient-composer-plugin
https://github.com/cweagans/composer-patches
https://www.drupal.org/project/rel_to_abs/issues/3434164
This commit is contained in:
Oliver Davies 2025-05-29 15:57:40 +01:00
parent c3965c027f
commit 0d359f81d6
4 changed files with 203 additions and 2 deletions

View file

@ -16,6 +16,7 @@
],
"require": {
"composer/installers": "^2.3",
"cweagans/composer-patches": "^1.7",
"drupal/core-composer-scaffold": "^11.1",
"drupal/core-project-message": "^11.1",
"drupal/core-recommended": "^11.1",
@ -25,10 +26,12 @@
"drupal/paragraphs": "^1.19",
"drupal/pathauto": "^1.13",
"drupal/redirect": "^1.11",
"drupal/rel_to_abs": "^2.2",
"drupal/tome": "^1.13",
"drupal/twig_tweak": "^3.4",
"drupal/weight": "^3.6",
"drush/drush": "^13.5"
"drush/drush": "^13.5",
"mglaman/composer-drupal-lenient": "^1.0"
},
"conflict": {
"drupal/drupal": "*"
@ -38,9 +41,11 @@
"config": {
"allow-plugins": {
"composer/installers": true,
"cweagans/composer-patches": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"drupal/core-composer-scaffold": true,
"drupal/core-project-message": true,
"mglaman/composer-drupal-lenient": true,
"php-http/discovery": true,
"phpstan/extension-installer": true,
"tbachert/spi": true
@ -105,6 +110,14 @@
" * Remove the plugin that prints this message:",
" composer remove drupal/core-project-message"
]
},
"drupal-lenient": {
"allowed-list": ["drupal/rel_to_abs"]
},
"patches": {
"drupal/rel_to_abs": {
"Automated Drupal 11 compatibility fixes for rel_to_abs": "https://www.drupal.org/files/issues/2024-03-24/rel_to_abs.2.2.5.rector.patch"
}
}
},
"scripts": {