diff --git a/hub-prime/src/main/resources/templates/layout/prime.html b/hub-prime/src/main/resources/templates/layout/prime.html index 4f63ca6ad40..54e96ef42b8 100644 --- a/hub-prime/src/main/resources/templates/layout/prime.html +++ b/hub-prime/src/main/resources/templates/layout/prime.html @@ -26,6 +26,12 @@ } document.addEventListener('DOMContentLoaded', function () { + const avatarUrl = document.querySelector('#avatar_url')?.innerText; + const htmlUrl = document.querySelector('#html_url')?.innerText; + document.avatarUrl = avatarUrl; + document.htmlUrl = htmlUrl; + document.querySelector('#principal_image').src = document.avatarUrl; + document.querySelector('#principal_html').href = document.htmlUrl; if (document.ssrBaggage?.userAgentBaggageExposureEnabled) { document.querySelector('#devl_ssrBaggage_userAgentBaggageExposureEnabledJsonViewer').data = document.ssrBaggage; document.querySelector('#devl_exposure_container').style.display = ''; @@ -91,7 +97,7 @@