0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Added analytic events to internal linking feature

closes https://linear.app/tryghost/issue/MOM-77
closes https://linear.app/tryghost/issue/MOM-78

- bumps Koenig to support events
- adds `siteUrl` pass-through to Koenig to allow differentiation between internal and external URLs
This commit is contained in:
Kevin Ansfield 2024-06-24 21:35:29 +01:00
parent eed162ed2a
commit 21a2a8236e
3 changed files with 8 additions and 7 deletions

View file

@ -462,7 +462,8 @@ export default class KoenigLexicalEditor extends Component {
membersEnabled: this.settings.membersSignupAccess === 'all', membersEnabled: this.settings.membersSignupAccess === 'all',
searchLinks, searchLinks,
siteTitle: this.settings.title, siteTitle: this.settings.title,
siteDescription: this.settings.description siteDescription: this.settings.description,
siteUrl: this.config.getSiteUrl('/')
}; };
const cardConfig = Object.assign({}, defaultCardConfig, props.cardConfig, {pinturaConfig: this.pinturaConfig}); const cardConfig = Object.assign({}, defaultCardConfig, props.cardConfig, {pinturaConfig: this.pinturaConfig});

View file

@ -48,7 +48,7 @@
"@tryghost/helpers": "1.1.90", "@tryghost/helpers": "1.1.90",
"@tryghost/kg-clean-basic-html": "4.1.1", "@tryghost/kg-clean-basic-html": "4.1.1",
"@tryghost/kg-converters": "1.0.5", "@tryghost/kg-converters": "1.0.5",
"@tryghost/koenig-lexical": "1.2.8", "@tryghost/koenig-lexical": "1.2.9",
"@tryghost/limit-service": "1.2.14", "@tryghost/limit-service": "1.2.14",
"@tryghost/members-csv": "0.0.0", "@tryghost/members-csv": "0.0.0",
"@tryghost/nql": "0.12.3", "@tryghost/nql": "0.12.3",
@ -206,4 +206,4 @@
} }
} }
} }
} }

View file

@ -7939,10 +7939,10 @@
dependencies: dependencies:
semver "^7.3.5" semver "^7.3.5"
"@tryghost/koenig-lexical@1.2.8": "@tryghost/koenig-lexical@1.2.9":
version "1.2.8" version "1.2.9"
resolved "https://registry.npmjs.org/@tryghost/koenig-lexical/-/koenig-lexical-1.2.8.tgz#fa92c6dd065a4f4ed1388391898b3d75d6b2cd13" resolved "https://registry.yarnpkg.com/@tryghost/koenig-lexical/-/koenig-lexical-1.2.9.tgz#ab922c51b2ddaa8bb361fd7e4c5760bb6e902055"
integrity sha512-c4Igsw57s6u3b/EeO++Ov/GSGok9z7nCt8Jo1o2mHhOwFEgBwv4rQg+4xbxqwcTX4Fdnapr4IdhRcuoQle8HlA== integrity sha512-1PrM2qCJFyMpUSxrzL8IuzY2OAYbeUKuVSEX/GKOxk/zZRib0Q5dsfjrhVv3iurvBg2Gmg5yyzXC60FDqXLR9w==
"@tryghost/limit-service@1.2.14": "@tryghost/limit-service@1.2.14":
version "1.2.14" version "1.2.14"