Closed (fixed)
Project:
Entity Usage
Version:
5.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2025 at 11:30 UTC
Updated:
15 Jul 2026 at 10:00 UTC
Jump to comment: Most recent
The UrlToEntity service considers a list of domains to be "internal" to the site. This list must be manually configured, which can be a maintenance burden for a multisite and/or different environments.
An option can be added that always adds the current domain to the list of domains, taken from the current request object.
An option is added below the list of domains in the settings form.
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
dennis_meuwissen commentedComment #4
marcoscano👍 sounds good to me, I can't think of a downside. We just need test coverage for the new functionality.
Thanks!
Comment #5
marcoscanoComment #6
dennis_meuwissen commentedAdded some tests for the UrlToEntity changes and the settings form checkbox. My first ever tests for a contrib module, so I hope they are ok...
Comment #7
alexpottI think this is a great idea - don't really feel it is a feature or needs configuration - it should just work this way out of the box.
I think we'll only implement in the 5.x branch as that is receiving all the new stuff and 8.x-2.x is basically on support only.
Comment #9
alexpottComment #10
alexpottThis results in us not having to set this in config in tests - a nice proof that this is a good idea.
Comment #12
alexpott