Skip to content

Gallery Block "Link To" Setting Not Creating Links for Images #40968

@mdrockwell

Description

@mdrockwell

Description

If you change a gallery's "Link To" setting to either "Attachment Page" or "Media File", neither is respected when viewing a preview or after publishing.

Step-by-step reproduction instructions

  1. Add a Gallery block to a post or page.
  2. Add a number of images to the block.
  3. Use the gallery block's gear icon to access it's settings (not an individual image, the whole block).
  4. Change the "Link To" setting to either "Attachment Page" or "Media File".
  5. Save as draft and preview or publish and view the post/page.

Expected behaviour

The images would all have the appropriate link added to them.

Actual behaviour

None of the images include a link.

WordPress information

WordPress Version: Tested on a WordPress.com Business plan site.

  • Are all plugins except Gutenberg deactivated? No plugins installed at all.
  • Are you using a default theme (e.g. Twenty Twenty-One)? No — Independent Publisher 2

Device information

  • Device: iPhone 13 Pro
  • Operating system: iOS 15.4.1
  • WordPress app version: 19.8.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Mobile App - i.e. Android or iOSNative mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions