diff --git a/11ty/filters/_tests/definitionPermalink.spec.js b/11ty/filters/_tests/definitionPermalink.spec.js index 8a971b3a..fa7d2859 100644 --- a/11ty/filters/_tests/definitionPermalink.spec.js +++ b/11ty/filters/_tests/definitionPermalink.spec.js @@ -3,5 +3,5 @@ import test from 'ava'; import definitionPermalink from '../definitionPermalink'; test('constructs correct detail link', (t) => { - t.is(definitionPermalink('test-slug'), '/definitions/test-slug/'); + t.is(definitionPermalink('test-slug'), '/#test-slug'); }); diff --git a/11ty/filters/definitionPermalink.js b/11ty/filters/definitionPermalink.js index b9d05ee7..7bddb523 100644 --- a/11ty/filters/definitionPermalink.js +++ b/11ty/filters/definitionPermalink.js @@ -1,3 +1,3 @@ module.exports = function(slug) { - return `/definitions/${slug}/`; + return `/#${slug}`; };