Drupal is a registered trademark of Dries Buytaert
cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8). editoria11y 2.2.22 Minor update available for module editoria11y (2.2.22). ai 1.2.13 Minor update available for module ai (1.2.13). ai 1.3.2 Minor update available for module ai (1.3.2). moderated_content_bulk_publish 2.0.51 Minor update available for module moderated_content_bulk_publish (2.0.51). moderated_content_bulk_publish 2.0.50 Minor update available for module moderated_content_bulk_publish (2.0.50). editoria11y 2.2.21 Minor update available for module editoria11y (2.2.21). eca 3.1.0 Minor update available for module eca (3.1.0). sophron 3.1.1 Minor update available for module sophron (3.1.1). ai 1.3.1 Minor update available for module ai (1.3.1). seven 2.0.0-beta6 New beta version released for theme seven (2.0.0-beta6).

Multi-domain awareness for the Short URL module. Adds per-domain slug scoping, a domain field on short URL nodes, and domain-aware redirects.

Features

  • Per-domain slug scoping — the same slug (e.g. /blog) can exist on multiple domains, each pointing to a different destination
  • Domain field on short URL nodes — assign each short URL to a specific domain
  • Domain-aware redirects via Domain Redirect — redirects are scoped to the correct domain automatically
  • Domain-aware visit tracking — the shorturl_visits table gains a domain_id column so statistics can be filtered per domain
  • Domain-aware slug generation — auto-increment counters can be scoped per-domain or kept global
  • Form integration — the domain selector appears on the short URL node form, with access control via Domain Access
  • Configuration UI at /admin/config/domain/shorturl for counter scope settings

Requirements

Optional

  • Domain Access (^3) — filters the domain selector on the node form by the user's assigned domains

Architecture

The module uses service decoration to extend the base Short URL services:

  • DomainAwareShortUrlManager decorates ShortUrlManager — injects the domain ID into redirects and visit records
  • DomainAwareSlugGenerator decorates SlugGenerator — adds domain-scoped uniqueness checks and per-domain counters
  • DomainAwareVisitMiddleware replaces the base visit middleware to record the active domain on each visit

Installation

composer require drupal/domain_shorturl
drush en domain_shorturl

The install hook automatically:

  • Adds a domain_id column to the shorturl_visits table
  • Adds the domain field to the short URL form and view displays

Uninstalling the module cleanly reverses these changes.

Activity

Total releases
3
First release
Apr 2026
Latest release
18 hours ago
Release cadence
0 days
Stability
0% stable

Release Timeline

Releases

Version Type Release date
1.0.0-alpha2 Pre-release Apr 13, 2026
1.0.0-alpha1 Pre-release Apr 13, 2026
1.x-dev Dev Apr 13, 2026