diff --git a/frontend/static/js/views/Search.js b/frontend/static/js/views/Search.js index 5f84845..4313530 100644 --- a/frontend/static/js/views/Search.js +++ b/frontend/static/js/views/Search.js @@ -65,7 +65,7 @@ export default class extends AbstractView { let username = document.createElement("a"); username.setAttribute('data-link', ''); username.id = `username${user.id}` - username.href = `/profiles/${user.id}`; + username.href = `/profiles/${user.username}`; username.style.color = client.notice.data["online"].includes(user.id.toString()) ? "green" : "red"; username.appendChild(document.createTextNode(user.username)); new_user.appendChild(username);