Skip to content

Commit

Permalink
Merge pull request #892 from shy1132/master
Browse files Browse the repository at this point in the history
fix additional url on abandoned profiles
  • Loading branch information
dimdenGD authored Jul 23, 2024
2 parents 260a000 + d8cc5d1 commit ec0d075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/profile/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ec0d075

Please sign in to comment.