Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Links to test/local boxes are erroring out, as they have fake domains. Instead of using real tld, it'd be much more convenient if could configure what tlds are allowed/disallowed (could also be useful if a new domain comes out, and for #496896: Link module treats .tesa as an invalid domain name (not sure if .tesa is a real tld?)).
There is no general link configuration page, so right now patch just adds a hidden variable like filter_allowed_protocols is :/.
Comment | File | Size | Author |
---|---|---|---|
link_allow_configurable_domains.patch | 1.77 KB | hefox | |
Comments
Comment #1
nicholasThompsonI would like to second this feature request; all my local dev sites are on ".dev" domains (defined by a hosts file).
A variable file would be a good starting point. An alternative would be to have a function which defines an array, passes it off in a drupal_alter() call and returns it (it should also statically cache too). This would allow us to have a "devsite" module which tweaks for our own needs.
Comment #2
jcfiala CreditAttribution: jcfiala commentedHey folks. I got this fixed by backporting some of the link 7.x-1.x code in #2223571: Support for new TLD's.