Skip to content

Share button doesn't work because portal.min.js isn't loaded when subscriptions are disabled #27415

@SteffoSpieler

Description

@SteffoSpieler

Issue Summary

The newest feature that is also not disable-able in the Source theme is the Share button, which creates a popup when clicking on that button or when appending #/share to the url.

This feature requires portal(.min).js to be loaded, which it currently only does if recommendations, subscriptions, or donations are enabled. (See code here.) I don't have any of them enabled and thus have a button that does nothing on my site.

Steps to Reproduce

  1. Disable recommendations, subscriptions, and donations.
  2. Go to any blog post.
  3. Try to share the post. (Through the button or by appending #/share to the end of the url.
  4. See that nothing happens.

Ghost Version

6.28.0

Node.js Version

22.22.2

How did you install Ghost?

Docker Compose

Database type

MySQL 8

Browser & OS version

Firefox 149.0.2 (64-Bit), Windows 11

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

    needs:triage[triage] this needs to be triaged by the Ghost team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions