mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06: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;
|
var byUrl = result.counts;
|
||||||
for (var i=0; i<links.length; i++) {
|
for (var i=0; i<links.length; i++) {
|
||||||
var link = links[i],
|
var link = links[i],
|
||||||
linkCount = byUrl[link] || byUrl[link.replace(/\/#/, '#')];
|
linkCount = byUrl[link.href] || byUrl[link.href.replace(/\/#/, '#')];
|
||||||
|
|
||||||
if (linkCount) {
|
if (linkCount) {
|
||||||
var t = document.createTextNode(" (" + linkCount + ")");
|
var t = document.createTextNode(" (" + linkCount + ")");
|
||||||
|
Loading…
Reference in New Issue
Block a user