Skip to content

Anchor Links in Post Content Open Raw JSON Instead of Actor Profiles #32

@akhileshthite

Description

@akhileshthite

When clicking on mentions (e.g., https://barriomarte.sutty.nl/about.jsonld) in the post content, the link opens the raw JSON activity instead of redirecting to the actor's profile page (e.g., http://reader.distributed.press/profile.html?actor=https://barriomarte.sutty.nl/about.jsonld).

This issue seems to have surfaced after the insertImagesAndVideos changes. The anchor links are not being correctly updated during content processing, leading to incorrect navigation behavior.

function insertImagesAndVideos (content) {

const anchors = contentDOM.querySelectorAll('a')

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority: mediumFor issues that affect some users or functionality, but have acceptable workarounds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions