Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: AI (Artificial Intelligence) 1.5.0 — Minor update available for module ai (1.5.0). Release: Search and Replace Scanner 2.0.1 — Minor update available for module scanner (2.0.1). Release: TMGMT DeepL Integration 2.3.1 — Minor update available for module tmgmt_deepl (2.3.1). Release: Media Directories 3.0.0 — Major update available for module media_directories (3.0.0). Release: Field Widget Actions 1.5.0 — Minor update available for module field_widget_actions (1.5.0). Release: Field Widget Actions 1.4.3 — Minor update available for module field_widget_actions (1.4.3). Release: Commerce Quick Node Clone 2.0.3 — Minor update available for module commerce_quick_node_clone (2.0.3). Release: Commerce Quick Node Clone 1.2.3 — Minor update available for module commerce_quick_node_clone (1.2.3). Usage Milestone: Facebook Page Plugin — Module fb_likebox crossed 1,000 active installs. Module Revived: Automated Logout Alterable 1.4.2 — Module autologout_alterable updated after 6 months of inactivity (1.4.2).

REST Absolute URLs

Security covered Drupal 11 · not 10
View on drupal.org

REST Absolute URLs is a tiny module which replaces relative file / image URLs with absolute URLs in the content fields when they are exposed to any Headless D8 successor (like JSON API or any other).

Usage Example

Imagine you've got a textarea field with WYSIWYG. You upload an image through WYSIWYG and it works great: you can see this image when you check this node in Drupal. However, when this node is getting fetched and displayed by any Frontend Framework (like React.js, Angular, etc), then this image is not visible. That's because the image's URL is relative, and can't be found on a server with your Frontend Framework.

This module automatically replaces such relative internal URLs with absolute URLs, so they point to the right server with Drupal where the files are really located.

Known issues

There's a known issue with the domain name when using Docker and server side rendering with node.js. The problem is that Drupal tries to determine the domain name automatically, and when node.js server makes HTTP request to Drupal using the container name instead of real URL (something like http://nginx/), then Drupal will use the container name as a base URL instead of real URL. The solution for this is to set the base URL explicitly:

  $config['rest_absolute_urls']['base_url'] = 'https://example.com';

Depends on

Dependencies of the latest stable release

  • serialization Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Sep 2026
Latest release
6 hours ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
2.1.0 Stable 11 Sep 25, 2026
2.0.1 Stable 10–11 Sep 25, 2026