Add support for the new "handheld" alternate URL meta tag that Google now supports. It should follow this structure:
<link rel="alternate" media="handheld" href="[current page URL]" />

Comments

DamienMcKenna created an issue. See original summary.

damienmckenna’s picture

Title: Add new meta tag: Google's new "handheld" link alternate URL » Add new meta tag: Google's new "handheld" link alternate URL (D8)
Parent issue: #2831822: Support Google's new "handheld" link alternate URL meta tag (D7) »
thejimbirch’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new4.03 KB
new197.66 KB
new124.81 KB

Patch attached that adds the handheld meta tag.

Steps to validate:
Apply the patch
Verify the Metatag: Mobile & UI Adjustments (metatag_mobile) module is enabled
Edit a metatag field of default and add a URL into the Handheld URL field

metatag

Save and view the source of the rendered page
Verify the handheld meta tag loads

metatag handheld source

Updates schema, test, and migrate also.

volkswagenchick’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new27.98 KB

Verified:

  • Apply the patch
  • Verify the Metatag: Mobile & UI Adjustments (metatag_mobile) module is enabled
  • Edit a metatag field of default and add a URL into the Handheld URL field
  • Save and view the source of the rendered page
  • Verify the handheld meta tag loads

Patch applied cleanly in terminal and on simplytest.me. All steps done and verified by source code. Screenshot attached. Marking RTBC

damienmckenna’s picture

damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.