humanmade / humanmade/h2

Image links are broken in Gallery components

Open
#422 2 comments 0 reactions 0 assignees View on GitHub
Bug Low priority
Dominant language
JavaScript
Stars
8
Forks
1
Avg merge
1d 9h
Merged PRs (30d)
7

Description

## Issue Description
Clicking images in gallery components leads to an error, since H2 seems to be treating them as post links. ( Given that 'Link to' option is set to 'Media file' ).
![image](https://user-images.githubusercontent.com/451892/78988075-2f463b80-7b30-11ea-9b77-b8a0490f0f2c.png)

## Steps to reproduce:

- Add a new gallery with one or more images
- Set 'Link to' to 'Media file'
- Preview the article
- Click one of the images

## Expected Result:

- I see the image ( open in a new tab, since we don't have lightbox-like components )

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.