Skip to content

ActivityPub portal links are broken #24684

@cathysarisky

Description

@cathysarisky

Issue Summary

Creating a "subscribe" button and using the popup helper to choose a Portal link results in a relative URL, that is broken in the ActivityPub reader.

Image

^ The resulting button works on the website, but not on ActivityPub.

Suggested fix 1: Make the link absolute when created, so that it works everywhere.
Suggested fix 2: Rewrite any relative URLs as absolute before sending content to the Fediverse.

Steps to Reproduce

see above, or:
0- Make sure Network is on.
1- Make a button and link it to the portal signup using the selector above. Publish the post.
2- Check the link on the post in the reader, preferably from a different account.

Ghost Version

6.0.4

Node.js Version

22

How did you install Ghost?

cli

Database type

MySQL 8

Browser & OS version

Chrome, Windows, recent

Relevant log / error output

Code of Conduct

  • I agree to be friendly and polite to people in this repository

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug[triage] something behaving unexpectedlycore team[triage] Being looked at by the core Ghost team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions