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.
Currently, in the value field of the contact and rss platform only supports internal drupal paths. But sometimes the RSS feed is hosted externally (e.g. Feedburner).
Comment | File | Size | Author |
---|---|---|---|
#2 | allow-external-urls-2629844-2.patch | 800 bytes | HiMyNameIsSeb |
Issue fork social_media_links-2629844
Show commands
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 #2
HiMyNameIsSeb CreditAttribution: HiMyNameIsSeb at Investis Digital commentedI have this requirement also so have created a patch to allow users to add absolute URLs (URLs beginning with "http").
I have not updated the labels on the block form as doing so looks a little messy.
There might be a good reason why allowing absolute URLS is a bad idea that I have not considered. If so, let me know. Also, feel free to adapt the patch or feedback as necessary.
Comment #3
HiMyNameIsSeb CreditAttribution: HiMyNameIsSeb at Investis Digital commentedComment #4
PaulDinelle CreditAttribution: PaulDinelle at Fenix Solutions Inc commentedI used this patch and it allowed for external URLs, so that's great!
My only criticism is that the form field's prefix is now confusing.
Recommendation is to:
Unfortunately I don't have time to reroll the patch at the moment, but here's an example message that could be used:
(note the above code had the "code" html elements stripped out due to the WYSIWYG parser on Drupal.org.
Comment #7
ShriaasI think better way would be to make RSS class extend
Platform Base
instead ofContact
and not provide any prefix so RSS will accepts external URLs too.Raised MR for same.