mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-22 09:20:00 +00:00
feat(permalink): revert cherry-picked changes to structure
This commit is contained in:
parent
aaf3ea3b73
commit
78f7d5b9ce
@ -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');
|
||||
});
|
||||
|
@ -1,3 +1,3 @@
|
||||
module.exports = function(slug) {
|
||||
return `/definitions/${slug}/`;
|
||||
return `/#${slug}`;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user