lhkjacky
(Jacky)
November 23, 2021, 11:26am
1
Dear all,
Thank you @david for suggest me to create new topic in ux here.
The problem is when user include a large image or header in beginning of a new Topic, the “excerpt” and “Read More” become no longer clickable.
It is because discourse generate lightbox for the image and anchor for header. The <a>
tag included in excerpt break the link.
<a class=\"lightbox\" href=\"\" data-download-href=\"\" title=\"Image title\"></a>
and
<a name="header" class="anchor" href="#header"></a>
Here is screenshot from Chrome inspector.
And this is a screenshot from latest.json
2 Likes
david
(David Taylor)
November 23, 2021, 11:52am
2
I tried to reproduce this locally, but I can’t. If I include a lightboxed image at the beginning of the post, it simply skips the lightbox/link, and shows the text below:
Can you share the ‘raw’ markdown for the post which has the issue?
Also, can you share your values for the relevent site settings:
lhkjacky
(Jacky)
November 23, 2021, 12:37pm
3
I tried another discourse testing site.
The post only have one image and then text.
Link
https://icute.jp/
Site Setting:
In the Chrome Inspector, span class “topic-excerpt-more” have no <a>
tag around it, that is why the “read more” button cannot be clicked.
Here is the latest.json
So this is based on non-standard use of excerpt? Are you referring to pinned topics?