Skip to content

Configuration

Navigate to Administration > Configuration > Domain > Domain Short URL (/admin/config/domain/shorturl) to configure the module.

Counter scope

Controls how auto-increment slug counters are managed:

  • Per domain (default) — each domain maintains its own independent counter. Domain A might be at slug 42 while domain B is at slug 17.
  • Global — a single counter is shared across all domains, identical to the base Short URL behavior.

The counter scope only affects the auto-increment slug mode. Base36 (random) and custom slugs are not affected.

Per-domain state keys

When using per-domain counters, the State API stores each counter under the key shorturl.counter.<domain_id>. A safety check queries the database for the highest existing numeric slug on each domain to prevent collisions if the state is ever reset.

Domain field

Each short URL node has a Domain field (field_shorturl_domain) that assigns it to a specific domain. When left empty, the short URL behaves as a global (non-scoped) redirect — the same as base Short URL behavior.

Access control

When Domain Access is installed, the domain selector on the node form is filtered by the user's assigned domains:

  • Users with the Create short URLs on any domain permission see all domains.
  • Other users only see domains assigned to them via field_domain_access on their user entity.

Without Domain Access, all users with node creation permission see all available domains.

Slug uniqueness

Slug uniqueness is enforced per domain. Two short URL nodes can share the same slug as long as they are assigned to different domains. When no domain is selected, uniqueness is checked globally.