diff --git a/web/app/embed.js b/web/app/embed.js index 60bd56e0..ec704691 100644 --- a/web/app/embed.js +++ b/web/app/embed.js @@ -26,7 +26,7 @@ function init() { return; } - remark_config.url = remark_config.url || window.location.href; + remark_config.url = (remark_config.url || window.location.href).split('#')[0]; const query = Object.keys(remark_config) .map(key => `${encodeURIComponent(key)}=${encodeURIComponent(remark_config[key])}`)