wg-build-test-release icon indicating copy to clipboard operation
wg-build-test-release copied to clipboard

Social links in emails by edx-ace include hardcoded references to sailthru-hosted images

Open regisb opened this issue 3 years ago • 7 comments

The base edx-ace template includes social icons (linkedin, twitter, ...) that are hosted on Sailthru, a marketing automation platform. This causes at least two obvious issues:

  1. Loss of privacy for platform managers and end-users
  2. edX.org tracks links included in emails sent by third-party Open edX platforms

The issue stems from this template: https://github.com/openedx/edx-platform/blob/db32ff2cdf678fa8edd12c9da76a76eef0478614/openedx/core/djangoapps/ace_common/templates/ace_common/edx_ace/common/base_body.html

IMHO the default configuration should be to point to social icons that are hosted on the Open edX platform itself. edX should override this configuration to make use of Sailthru-hosted images.

This was first reported by @insad here: https://github.com/overhangio/tutor/issues/572#issuecomment-1081763915 A somewhat similar issue was reported (and solved, thanks to @NeOneSoft) in the past: https://github.com/openedx/build-test-release-wg/issues/7 https://github.com/openedx/edx-platform/pull/27064

regisb avatar Mar 31 '22 13:03 regisb

Hi @regisb and @BbrSofiane,

I would like to contribute to Open edX. You can assign this issue to me.

I have looked at the template and I think I understand the issue. I also looked at the previous fix where the hard coded edx-logo was replaced by <img src="logo_url" .

The strategy would be to remove the hard coded links to the sailthru hosted images in the img_src. Replace for example the img_src of {% if social_media_urls.facebook %} with something like <img src="facebook_logo_url", and then point facebook_logo_url to a path on the Open edX platform.

I would then repeat the above for linkedin, reddit, etc

juakali-networks avatar May 26 '22 08:05 juakali-networks

Hi @Peters-Lab, thanks for volunteering to take this on!

Once you've implemented your fix, you'll need to create two PRs:

  • [ ] A PR against the master branch of edx-platform
  • [ ] A PR against the open-release/nutmeg.master branch

BbrSofiane avatar May 26 '22 09:05 BbrSofiane

@BbrSofiane. I sure will. Thanks

juakali-networks avatar May 26 '22 12:05 juakali-networks

Not only are Social Media links hard coded to sailthru-hosted images but also the Mobile Store links (apple store app and google play app).

Reproduction

Register as a new user to https://www.edx.org/.

You will receive an email in your inbox.

In the confirmation email, using your browser, check the source code of the facebook icon, twitter icon, apple store icon and google play icon.

Impact The social media icons are mobile store icons are hosted on sailthru

image

I will reproduce the issue on my local Tutor instance so that I can test my fix locally before I make a PR.

juakali-networks avatar May 28 '22 08:05 juakali-networks

@BbrSofiane. I got caught up by personal issues so I have not looked at this issue since. I would like to look at it and try to fix this issue next week. Is that OK?. I saw somewhere here that nutmeg release is on 10th June. Or is there another future nutmeg release?.

juakali-networks avatar Jun 09 '22 06:06 juakali-networks

@regisb and @BbrSofiane

I created a PR for this issue against the master branch of edx-platform https://github.com/openedx/edx-platform/pull/30630

I tested my fix and it works on my setup.

Is it still necessary to create a PR against the "open-release/nutmeg.master branch", since nutmeg was released?. If so, let me know and I will create one.

juakali-networks avatar Jun 22 '22 07:06 juakali-networks

Thanks for your PR @Peters-Lab! I think that we should wait until your PR is merged in master, and then we'll cherry-pick the change in the open-release/nutmeg.master branch.

regisb avatar Jun 22 '22 10:06 regisb

Closing as stale. (The fix is already in master/Olive.)

arbrandes avatar Dec 06 '22 14:12 arbrandes