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 75b080c commit 4685f28Copy full SHA for 4685f28
src/helpers/relativize.js
@@ -5,7 +5,7 @@ const { posix: path } = require('path')
5
module.exports = (to, { data: { root } }) => {
6
if (!to) return '#'
7
const from = root.page.url
8
- if (!from || to.charAt() === '#') return to
+ if (!from || to.charAt() !== '/') return to
9
let hash = ''
10
const hashIdx = to.indexOf('#')
11
if (~hashIdx) {
0 commit comments