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

Glossary hash link patch #7010

Merged
merged 2 commits into from
Jul 13, 2022
Merged

Glossary hash link patch #7010

merged 2 commits into from
Jul 13, 2022

Conversation

wackerow
Copy link
Member

Description

  • Patches recent update to remove glossary icon from menu glossary link.
  • Only adds to links that include 'glossary' and '#' in the link string, no necessarily only glossary#

@@ -97,7 +97,7 @@ const Link: React.FC<IProps> = ({

const isExternal = to.includes("http") || to.includes("mailto:")
const isHash = isHashLink(to)
const isGlossary = to.includes("glossary#")
const isGlossary = to.includes("glossary" && "#")
Copy link
Contributor

Choose a reason for hiding this comment

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

String.includes only accepts 1 argument so this will ignore "glossary" match any link including "#".

Suggested change
const isGlossary = to.includes("glossary" && "#")
const isGlossary = to.includes("glossary") && to.includes("#")

@gatsby-cloud
Copy link

gatsby-cloud bot commented Jul 11, 2022

Gatsby Cloud Build Report

ethereum-org-website-dev

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 32m

Performance

Lighthouse report

Metric Score
Performance 🔶 19
Accessibility 🔶 89
Best Practices 💚 100
SEO 💚 92

🔗 View full report

@minimalsm minimalsm merged commit 760dc67 into dev Jul 13, 2022
@minimalsm minimalsm deleted the glossary-patch branch July 13, 2022 13:15
@wackerow wackerow mentioned this pull request Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants