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.
Add the http-equiv="refresh" meta tag from D7 (#1404270: Add new meta tag: Refresh).
Comment | File | Size | Author |
---|---|---|---|
#10 | 3077774-8.png | 282.22 KB | cindytwilliams |
#8 | 3077774-add-refresh-8.patch | 2.58 KB | thejimbirch |
|
Comments
Comment #2
DamienMcKennaComment #3
thejimbirch CreditAttribution: thejimbirch at Kanopi Studios commentedWorking on this.
Comment #4
thejimbirch CreditAttribution: thejimbirch at Kanopi Studios commentedPatch attached that adds the refresh meta tag.
Steps to validate:
Apply the patch
Edit a metatag field or default and add a number or a number and a url (
5; url=http://example.com/
)Save and view the source of the rendered page
The browser will redirect the page after the amount of time specified.
Comment #5
cindytwilliams CreditAttribution: cindytwilliams at Kanopi Studios commentedPatch applied cleanly. The refresh field was displayed on the metatag admin configuration screen. When a value was entered into the field, the refresh metatag appeared in the source of the rendered page, and the browser redirected to the page after the amount of time specified. Marking RTBC.
Comment #6
DamienMcKennaCould you please also edit the "refresh" line in src/Plugin/migrate/process/d7/MetatagD7Entities.php? Thanks.
Comment #7
thejimbirch CreditAttribution: thejimbirch at Kanopi Studios commentedNew patch attached that adds
refresh
to thetagsMap
function in theMetatagD7Entities
class (very cool!)Comment #8
thejimbirch CreditAttribution: thejimbirch at Kanopi Studios commentedRealized I missed the schema on this one also. New patch attached.
Comment #9
DamienMcKennaComment #10
cindytwilliams CreditAttribution: cindytwilliams at Kanopi Studios commentedPatch applied cleanly, and added refresh to the tagsMap function in the MetatagD7Entities class and also to the schema. Functionality still works as expected -- when the "Refresh" field is populated it adds a refresh metatag and browser redirects to the specified page. Marking RTBC.
Comment #12
DamienMcKennaCommitted. Thanks everyone!