mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
FIX: Should be href
for the link
This commit is contained in:
parent
fa3e9144e2
commit
ebb0661029
|
@ -28,7 +28,7 @@
|
|||
var byUrl = result.counts;
|
||||
for (var i=0; i<links.length; i++) {
|
||||
var link = links[i],
|
||||
linkCount = byUrl[link] || byUrl[link.replace(/\/#/, '#')];
|
||||
linkCount = byUrl[link.href] || byUrl[link.href.replace(/\/#/, '#')];
|
||||
|
||||
if (linkCount) {
|
||||
var t = document.createTextNode(" (" + linkCount + ")");
|
||||
|
|
Loading…
Reference in New Issue
Block a user