diff --git a/layouts/profile/script.js b/layouts/profile/script.js index c6cf5d9b..f35f1a75 100644 --- a/layouts/profile/script.js +++ b/layouts/profile/script.js @@ -1775,8 +1775,8 @@ async function renderProfile() { let url = document.createElement('a'); url.classList.add('profile-additional-thing', 'profile-additional-url'); let realUrl = pageUser.entities.url.urls[0]; - url.innerText = realUrl.display_url; - url.href = realUrl.expanded_url; + url.innerText = realUrl.display_url || realUrl.url; + url.href = realUrl.expanded_url || realUrl.url; if(!url.href.startsWith('/')) url.target = "_blank"; additionalInfo.appendChild(url); }