feat(permalink): revert cherry-picked changes to structure

This commit is contained in:
Oscar 2020-02-17 00:12:18 +01:00
parent aaf3ea3b73
commit 78f7d5b9ce
2 changed files with 2 additions and 2 deletions

View File

@ -3,5 +3,5 @@ import test from 'ava';
import definitionPermalink from '../definitionPermalink'; import definitionPermalink from '../definitionPermalink';
test('constructs correct detail link', (t) => { test('constructs correct detail link', (t) => {
t.is(definitionPermalink('test-slug'), '/definitions/test-slug/'); t.is(definitionPermalink('test-slug'), '/#test-slug');
}); });

View File

@ -1,3 +1,3 @@
module.exports = function(slug) { module.exports = function(slug) {
return `/definitions/${slug}/`; return `/#${slug}`;
}; };