Ghost/ghost/member-attribution
Simon Backx 663b0dfeb2
🐛 Fixed ref attribute in email links (#15775)
fixes https://github.com/TryGhost/Team/issues/2025 
fixes https://github.com/TryGhost/Team/issues/2023

The `ref` attribute has changed in email links:
- We now use the site name when linking to external sites
- We blacklist facebook.com because it doesn't support ref attributes
- '-newsletter' is not repeated anymore if the newsletter name already ends with 'newsletter'
- We always sluggify the ref
- We no longer overwrite existing ref, utm_source or source parameters
2022-11-08 11:24:00 +01:00
..
lib 🐛 Fixed ref attribute in email links (#15775) 2022-11-08 11:24:00 +01:00
test 🐛 Fixed ref attribute in email links (#15775) 2022-11-08 11:24:00 +01:00
.eslintrc.js
index.js Updated attribution service to handle referrer information 2022-09-19 12:29:22 +05:30
package.json 🐛 Fixed ref attribute in email links (#15775) 2022-11-08 11:24:00 +01:00
README.md

Member Attribution

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests