diff --git a/src/plugins/disqus.js b/src/plugins/disqus.js index 6b8b64b2a..c79bcd7c5 100644 --- a/src/plugins/disqus.js +++ b/src/plugins/disqus.js @@ -1,4 +1,7 @@ -location.href = location.href.replace('/-/', '/#/') +const fixedPath = location.href.replace('/-/', '/#/') +if (fixedPath != location.href) { + location.href = fixedPath +} function install (hook, vm) { const dom = Docsify.dom