We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a310220 commit a8b2334Copy full SHA for a8b2334
src/getDataSource.js
@@ -16,7 +16,7 @@ const getDataSource = (opts) => {
16
'accessToken': opts.dataSource.accessToken,
17
'linkResolver': configLinkResolver || function (ctx, doc) {
18
if (doc.isBroken) return ''
19
- if (_.has(doc, 'data.slug.json.value')) { // Node >= 14 - can use instead use: (doc?.data?.slug?.json?.hasOwnProperty('value'))
+ if (_.has(doc, 'data.slug.json.value')) {
20
const regExpDomain = new RegExp(`.*${opts.config.domainSettings.domainLive}`)
21
// Strip domain (+ everything before it) off of the slug in case it was added by mistake
22
const slug = doc.data.slug.json.value
0 commit comments