Skip to content

Commit 59a08df

Browse files
Merge pull request #1072 from scidsg/hangul-urls
update url encoding for profile urls
2 parents d97ee6c + 8c78012 commit 59a08df

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

assets/js/directory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ document.addEventListener("DOMContentLoaded", function () {
9696
<div class="badgeContainer">${badgeContainer}</div>
9797
${bioHighlighted ? `<p class="bio">${bioHighlighted}</p>` : ""}
9898
<div class="user-actions">
99-
<a href="${pathPrefix}/to/${user.primary_username}">View Profile</a>
99+
<a href="${pathPrefix}/to/${encodeURIComponent(user.primary_username)}">View Profile</a>
100100
${isSessionUser ? `<a href="#" class="report-link" data-username="${user.primary_username}" data-display-name="${user.display_name || user.primary_username}" data-bio="${user.bio ?? "No bio"}">Report Account</a>` : ``}
101101
</div>
102102
`;

assets/js/directory_verified.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ document.addEventListener("DOMContentLoaded", function () {
129129
: ""
130130
}
131131
<div class="user-actions">
132-
<a href="${pathPrefix}/to/${user.primary_username}">View Profile</a>
132+
<a href="${pathPrefix}/to/${encodeURIComponent(user.primary_username)}">View Profile</a>
133133
${
134134
isSessionUser
135135
? `<a href="#" class="report-link" data-username="${

hushline/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.4.77"
1+
__version__ = "0.4.78"

0 commit comments

Comments
 (0)