Consumer Base URL
This module allows you to set a specific base URL for each consumer, which is then used for entity canonical URLs and URL tokens. It is intended for use with the consumers module and GraphQL.
Synopsis
The Consumer Base URL module provides base URL per consumer and use it for entity canonical URLs, URL tokens and other stuff.
- Currently only tested with 1 default consumer together with GraphQL 4.x.
Installation
1.x.x: Install as usual, see the official documentation for further information.
Configuration
- Go to Manage > Configuration > Web-Services > Consumers.
- Edit consumer you want to add a base URL for.
- Add base URL in following format https://example.com.
- Save consumer.
- Maybe you have to clear caches if you add/edit a base URL for an existing consumer.
Requirements
Following Drupal core modules are required to use Consumer Baser URL module.
- drupal/pathalias core module
- consumers contrib module
Credits
Current maintainers for Consumer Base URL:
Want to support the development of this project?
Support and help wanted!
File bugs, feature requests and support requests in the Drupal.org issue queue
of this project.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.0.0-beta2 | Pre-release | 10–11 | Optimise services by using closures and added a lot of Drupal tests. | Jun 15, 2026 | |
| 1.0.0-beta1 | Pre-release | 10–11 | Fix critical bug and added via hook alterable routes | Apr 7, 2026 | |
| 1.0.0-alpha6 | Pre-release | 10–11 | Fix and improved route URL handling | Sep 30, 2025 | |
| 1.0.0-alpha5 | Pre-release | 10–11 | D10.3 and D11 compatibility | May 22, 2025 |