mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 10:57:04 +08:00
FIX: Update links regardless of trailing slashes
This commit is contained in:
parent
a4daafa026
commit
fa3e9144e2
|
@ -28,7 +28,7 @@
|
|||
var byUrl = result.counts;
|
||||
for (var i=0; i<links.length; i++) {
|
||||
var link = links[i],
|
||||
linkCount = byUrl[link];
|
||||
linkCount = byUrl[link] || byUrl[link.replace(/\/#/, '#')];
|
||||
|
||||
if (linkCount) {
|
||||
var t = document.createTextNode(" (" + linkCount + ")");
|
||||
|
|
Loading…
Reference in New Issue
Block a user