diff options
Diffstat (limited to 'frontend/templates/directory.html')
| -rw-r--r-- | frontend/templates/directory.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/templates/directory.html b/frontend/templates/directory.html index 1a29e31..89c9373 100644 --- a/frontend/templates/directory.html +++ b/frontend/templates/directory.html @@ -264,7 +264,8 @@ var Directory = users[i].score = ' ' } cl += count % 2 ? " on" : " off" - rows.push('<li class="'+cl+'"><span class="score">'+users[i].score+'</span><a href="/profile/'+users[i].name+'">'+users[i].name+'</a></li>') + var domain = window.location.hostname.split('.').slice(-2).join('.') + rows.push('<li class="'+cl+'"><span class="score">'+users[i].score+'</span><a href="http://'+users[i].name+'.'+domain+'/">'+users[i].name+'</a></li>') count += 1 } $("#directory").html(rows.join('')) |
