mirror of
https://github.com/danpros/htmly.git
synced 2026-04-20 12:36:23 +05:30
bug fix: disqus always want absolute url, so a relative url in config.site.url breaks disqus.
This commit is contained in:
parent
2cea0ace73
commit
eff6949ac5
1 changed files with 1 additions and 1 deletions
|
|
@ -1859,7 +1859,7 @@ function disqus($title = null, $url = null)
|
|||
$script = <<<EOF
|
||||
<script type="text/javascript">
|
||||
var getAbsolutePath = function(href) {
|
||||
var link = document.createElement('__dummy_get_absolute_path');
|
||||
var link = document.createElement('a');
|
||||
link.href = href;
|
||||
return link.href;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue