diff --git a/components/LinkedText.vue b/components/LinkedText.vue index 98634762..24737f7b 100644 --- a/components/LinkedText.vue +++ b/components/LinkedText.vue @@ -30,6 +30,10 @@ return bufferNode; } + if (linkBuffer === '') { + linkBuffer = '#' + buffer; + } + if (linkBuffer.indexOf('https://') === 0 || linkBuffer.indexOf('http://') === 0 || linkBuffer.indexOf('mailto:') === 0 diff --git a/plugins/hash.js b/plugins/hash.js index 56e3ae7d..3823632e 100644 --- a/plugins/hash.js +++ b/plugins/hash.js @@ -1,7 +1,7 @@ export default { methods: { handleHash(namespace, callback, checkAnchor = true) { - if (!process.client || !window.location.hash) { + if (!process.client) { return; }