diff options
-rw-r--r-- | src/content/dependencies/linkTemplate.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/content/dependencies/linkTemplate.js b/src/content/dependencies/linkTemplate.js index 98e2c8b9..dab81ad3 100644 --- a/src/content/dependencies/linkTemplate.js +++ b/src/content/dependencies/linkTemplate.js @@ -29,7 +29,9 @@ export default { let style; let title; - if (!href && !empty(slots.path)) { + if (href) { + href = encodeURI(href); + } else if (!empty(slots.path)) { href = to(...slots.path); } |