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.
Problem/Motivation
Allow users to find documentation on trusted_host_patterns
easily.
Proposed resolution
Add a comment in default.settings.php file near the trusted_host_patterns code pointing to the official documentation on this setting:
@see https://www.drupal.org/node/1992030
Remaining tasks
Commit the patch.
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
Unnecessary.
Comment | File | Size | Author |
---|---|---|---|
#22 | interdiff-16-22.txt | 1.19 KB | tunic |
#22 | 3175428-link-trusted-hosts-doc-22.patch | 1.16 KB | tunic |
#4 | 3175428-link-trusted-hosts-doc-2.patch | 880 bytes | tunic |
Comments
Comment #2
tunicPatch attatched.
Comment #4
tunicIt turns out there's another file in assets that must be patched.
Let's try again.
Comment #5
Abhijith S CreditAttribution: Abhijith S as a volunteer and at Zyxware Technologies commentedApplied patch .Its working fine.Also the documentation URL given is correct
Comment #6
Abhijith S CreditAttribution: Abhijith S as a volunteer and at Zyxware Technologies commentedRTBC
Comment #7
Abhijith S CreditAttribution: Abhijith S as a volunteer and at Zyxware Technologies commentedComment #8
quietone CreditAttribution: quietone as a volunteer commentedI think these changes needs to be done in core/assets/scaffold/files/default.settings.php as well. Setting to NW to have that answered.
Comment #9
kishor_kolekar CreditAttribution: kishor_kolekar as a volunteer and at QED42 for Drupal India Association commentedComment #10
kishor_kolekar CreditAttribution: kishor_kolekar as a volunteer and at QED42 for Drupal India Association commentedchanges as per commnet #8
please review the ptach.
Comment #11
kishor_kolekar CreditAttribution: kishor_kolekar as a volunteer and at QED42 for Drupal India Association commentedComment #13
tunic#8, the first patch didn't and that's why it failed. However, the second patch (https://www.drupal.org/files/issues/2020-10-07/3175428-link-trusted-host...) changes both files:
Patch from #10 only changes core/assets/scaffold/files/default.settings.php but it seems both files need to be changed.
Back to second patch and needs review status.
Comment #15
ranjith_kumar_k_u CreditAttribution: ranjith_kumar_k_u at Zyxware Technologies commentedThe #4 patch works fine on 9.2.x dev version.RTBC
Comment #16
ranjith_kumar_k_u CreditAttribution: ranjith_kumar_k_u at Zyxware Technologies commentedRe-rolled from #4
Comment #19
vikashsoni CreditAttribution: vikashsoni as a volunteer and at Zyxware Technologies commentedPatch #4 applied successfully and looks good for me
Thanks for the patch
Comment #20
SpokjeComment #21
alexpottLet's link to the human readable URL - other places in settings.php use these... so https://www.drupal.org/docs/installing-drupal/trusted-host-settings
Comment #22
tunicLinks now use human-readable URLs.
Comment #23
SpokjeBack to RTBC after the requested change came back green
Comment #24
alexpottCommitted and pushed 648e58d053d to 10.0.x and 781ba3a616e to 9.4.x. Thanks!