Ghost/ghost/link-replacement
Fabien 'egg' O'Carroll bddb0ba754
Wired up link redirects & tracking (#15418)
refs https://github.com/TryGhost/Team/issues/1910
refs https://github.com/TryGhost/Team/issues/1888

- Uses an in-memory repository for now whilst in development
- Updates the LinkReplacementService to choose the slug
- Exposes a `getSlug` method so we can ensure uniqueness
- Emits the RedirectEvent for use by LinkTracking
2022-09-16 10:42:21 +02:00
..
lib Wired up link redirects & tracking (#15418) 2022-09-16 10:42:21 +02:00
test Wired up link redirects & tracking (#15418) 2022-09-16 10:42:21 +02:00
.eslintrc.js
index.js
package.json Wired up member attribution from email clicks (#15407) 2022-09-14 15:50:54 -04:00
README.md

Link Replacement

Replace links in a HTML string to add attribution and link tracking

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