From 87be76ebb3889ec4c97d9cbc932fb28cd95e09f6 Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Tue, 17 Jan 2023 15:15:32 +0100 Subject: [PATCH] Added `externalAttribution` feature flag fixes https://github.com/TryGhost/Team/issues/2430 --- ghost/admin/app/services/feature.js | 1 + ghost/admin/app/templates/settings/labs.hbs | 13 +++++++++++++ ghost/core/core/shared/labs.js | 3 ++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/ghost/admin/app/services/feature.js b/ghost/admin/app/services/feature.js index bbdbed3235..b28ec7f18a 100644 --- a/ghost/admin/app/services/feature.js +++ b/ghost/admin/app/services/feature.js @@ -65,6 +65,7 @@ export default class FeatureService extends Service { @feature('suppressionList') suppressionList; @feature('emailStability') emailStability; @feature('webmentions') webmentions; + @feature('externalAttribution') externalAttribution; _user = null; diff --git a/ghost/admin/app/templates/settings/labs.hbs b/ghost/admin/app/templates/settings/labs.hbs index 883d5f8337..26f0e3bb44 100644 --- a/ghost/admin/app/templates/settings/labs.hbs +++ b/ghost/admin/app/templates/settings/labs.hbs @@ -239,6 +239,19 @@ +
+
+
+

External attribution

+

+ Adds ?ref to external links in web posts and adds a setting to control this for both web and newsletters. +

+
+
+ +
+
+
{{/if}} diff --git a/ghost/core/core/shared/labs.js b/ghost/core/core/shared/labs.js index 0ca16a4fd0..1d21748700 100644 --- a/ghost/core/core/shared/labs.js +++ b/ghost/core/core/shared/labs.js @@ -33,7 +33,8 @@ const ALPHA_FEATURES = [ 'urlCache', 'beforeAfterCard', 'lexicalEditor', - 'webmentions' + 'webmentions', + 'externalAttribution' ]; module.exports.GA_KEYS = [...GA_FEATURES];