Skip to content

Social Share Buttons not working with Rails 6 and Decidim 0.25 #8956

@arusa

Description

@arusa

Describe the bug

The Social Share Buttons in Proposals are not working. You can even see the problem on meta decidim.

The problem seems to be known in the issues for the social-share-button gem:

huacnlee/social-share-button#183

To Reproduce

Steps to reproduce the behavior:

When you click a social share button the JS console writes ReferenceError: Can't find variable: SocialShareButton

  1. Go to https://meta.decidim.org/processes/RedesignDecidim
  2. Click on 'Share'
  3. Click on any social media icon
  4. See error in developer console

Expected behavior

It should be possible to share on social media.

Screenshots

image

Extra data (please complete the following information):

  • Device: MacBook Pro 2021
  • Device OS: MacOS 12.2.1
  • Browser: Safari 15.3
  • Decidim Version: 0.25.2
  • Decidim installation: e.g. MetaDecidim

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions