Closed (fixed)
Project:
Domain Path
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2026 at 09:25 UTC
Updated:
24 Mar 2026 at 15:50 UTC
Jump to comment: Most recent
When Domain module's path prefix feature is enabled (allowing multiple domains to share a single hostname differentiated by a path prefix), the Domain Path widget labels have two issues:
alias_title is set to hostname, domains sharing the same hostname but with different prefixes are indistinguishable (both show example.com). The prefix should be appended to produce example.com/fr.DomainPathautoWidget::formElement() always uses getPath() for the "Generate automatic URL alias for @domain" checkbox label, ignoring the alias_title config setting that the parent DomainPathWidget respects./admin/config/domain/settingsfr/admin/config/domain_path/settings — both domains show the same hostname with no way to tell them apartDomainPathWidget and DomainPathautoWidget now append the path prefix to the hostname when alias_title === 'hostname' (e.g., example.com/fr).DomainPathautoWidget::formElement() now reads the alias_title setting to choose between domain name, hostname, or URL — consistent with the parent widget.DomainPathSettingsForm now reads "The raw hostname (with path prefix if set)".Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mably commentedRequires domain issue #3575947: Support a path prefix for Domain records to allow a single hostname to host multiple domains to be merged first.
Comment #4
mably commentedComment #5
mably commentedComment #6
mably commentedFix
DomainPathWidgetandDomainPathautoWidgetno longer callgetPathPrefix()to manually append the prefix aftergetPath(), sincegetPath()already includes it.alias_title === 'hostname', the prefix is appended to the hostname (e.g.,example.com/fr) so prefixed domains sharing the same hostname are distinguishable.DomainPathSettingsFormnow reads "The raw hostname (with path prefix if set)".DomainPathautoWidget::formElement()now reads thealias_titlesetting instead of always usinggetPath(), consistent with the parentDomainPathWidget.Comment #7
mably commentedComment #9
mably commented