Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(macros/HTTPSidebar): remove Cookie Security link #9654

Merged
merged 4 commits into from
Nov 18, 2023

Conversation

jhongyu
Copy link
Contributor

@jhongyu jhongyu commented Sep 13, 2023

Summary

Fixes #8946

Problem

The link of "Cookie security" in the HTTP security sidebar is https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Secure_and_HttpOnly_cookies, while this link doesn't exist in the "Cookies" page

Solution

Update the link of "Cookie security" in the HTTP security sidebar to https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#security


Screenshots

Before

before.mp4

After

after.mp4

@github-actions github-actions bot added the macros tracking issues related to kumascript macros label Sep 13, 2023
@jhongyu jhongyu marked this pull request as ready for review September 13, 2023 07:37
@@ -321,7 +321,7 @@ var text = mdn.localStringMap({
<ol>
<li><a href="/<%=locale%>/docs/Web/HTTP/CSP"><%=text['CSP']%></a></li>
<li><a href="/<%=locale%>/docs/Web/HTTP/Headers/Strict-Transport-Security">HTTP Strict Transport Security (HSTS)</a></li>
<li><a href="/<%=locale%>/docs/Web/HTTP/Cookies#Secure_and_HttpOnly_cookies">Cookie security</a></li>
<li><a href="/<%=locale%>/docs/Web/HTTP/Cookies#security">Cookie security</a></li>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URI fragment is "locale-aware", for example, this should be "#安全" for zh-CN, "#安全性" for zh-TW, "#セキュリティ" for ja. Simply setting this as "#security" may not be a good idea.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated the links to adapt for different languages

@caugner caugner requested a review from a team as a code owner November 7, 2023 20:10
@caugner caugner changed the title chore(cookie-security): update link chore(macros/HTTPSidebar): update Cookie Security link Nov 7, 2023
Copy link
Member

@yin1999 yin1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for 'zh-CN' and 'zh-TW'

@caugner
Copy link
Contributor

caugner commented Nov 8, 2023

@jhongyu Sorry for taking so long to get back to you.

Looking at that Security section on the Cookies page and seeing how small it is, I actually don't think it makes sense to have a dedicated link from the sidebar, so I would suggest to remove that link from the HTTPSidebar instead.

What do you think?

@jhongyu
Copy link
Contributor Author

jhongyu commented Nov 9, 2023

@jhongyu Sorry for taking so long to get back to you.

Looking at that Security section on the Cookies page and seeing how small it is, I actually don't think it makes sense to have a dedicated link from the sidebar, so I would suggest to remove that link from the HTTPSidebar instead.

What do you think?

Sounds OK for me, I'll remove the link

@jhongyu jhongyu changed the title chore(macros/HTTPSidebar): update Cookie Security link chore(macros/HTTPSidebar): remove Cookie Security link Nov 9, 2023
@caugner caugner merged commit 4618778 into mdn:main Nov 18, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macros tracking issues related to kumascript macros
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The link of "Cookie security" in the sidebar does not exist
3 participants