Skip to content

Commit

Permalink
Allow decoding post link (theme-next#1247)
Browse files Browse the repository at this point in the history
  • Loading branch information
1v9 authored and stevenjoezhang committed Nov 27, 2019
1 parent 35ebb47 commit a226d4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/helpers/next-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ hexo.extend.helper.register('next_url', function(path, text, options = {}) {
}

for (let key in options) {

/**
* If option have `class` attribute, add it to
* 'exturl' class if `exturl` option enabled.
Expand Down Expand Up @@ -56,5 +57,5 @@ hexo.extend.helper.register('next_url', function(path, text, options = {}) {
}
}

return htmlTag(tag, attrs, text, false);
return htmlTag(tag, attrs, decodeURI(text), false);
});

0 comments on commit a226d4f

Please sign in to comment.