Same alias cannot be set if accessing node creation page with same domain name

Created on 5 September 2025, about 1 month ago

Problem/Motivation

You cannot add a node with a same alias if you are accessing node add page with the same domain used in already existing node's Domain Access settings.

This is not a problem in most cases, but for example in our case, where we use one "management domain" to administer all the nodes under different domains, this causes a problem.

Steps to reproduce

  • Create node 1: domain1.example.com/node/add/page
    • Set alias: /contact
    • Set Domain Access: domain1.example.com
  • Create node 2: domain1.example.com/node/add/page
    • Set alias: /contact
    • Set Domain Access: domain2.example.com

Different domain is selected from Domain Access settings in a Node advanced settings (side bar), but you still get an error message about to try to add the same alias to the same domain!

Proposed resolution

Domain Unique Path Alias should not get node's assumed domain from page URL, it should use selected Domain Access settings in node creation/edit -form.

Remaining tasks

⬜ Discover if solution is viable
⬜ Implementing the solution
⬜ Review & Test it

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇫🇮Finland sami vakkuri

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024