Alter Drupal final HTML output to change all paths from relative to absolute URL
The task is to change all path values in HTML attributes src
and href
from relative to absolute URL in a Drupal site by altering Drupal final HTML output.
We can just use the following codes to target links: