Skip to content

Commit 297dbcf

Browse files
pranathibora14Copilotkzu
authored
Fix sponsorship url encoding (#10747)
* Fix sponsorship URL HTML encoding Co-authored-by: kzu <[email protected]> * Remove sponsorship view regression test Co-authored-by: kzu <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: kzu <[email protected]>
1 parent 360765d commit 297dbcf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NuGetGallery/Views/Packages/DisplayPackage.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@
13141314
{
13151315
<div class="external-link-container">
13161316
<i class="ms-Icon ms-Icon--Link sidebar-link-icon" aria-hidden="true"></i>
1317-
<a href="@sponsorshipUrl" target="_blank" rel="nofollow noopener noreferrer" class="sidebar-link" data-sponsorship-url="@Html.Raw(Json.Encode(sponsorshipUrl))">
1317+
<a href="@sponsorshipUrl" target="_blank" rel="nofollow noopener noreferrer" class="sidebar-link" data-sponsorship-url="@Json.Encode(sponsorshipUrl)">
13181318
@sponsorshipUrl
13191319
</a>
13201320
</div>

0 commit comments

Comments
 (0)