Skip to content

Commit

Permalink
fix: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
timwessman committed Nov 21, 2024
1 parent f3c9619 commit a20d1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/src/components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const fixUrlExceptions = (href, version) => {
const hrefWithVersion = (href, version, withoutPrefix = false) => {
const hrefWithFixedExceptions = fixUrlExceptions(href, version);

if (!version || version === '' || hrefWithFixedExceptions === ''
if (!version || hrefWithFixedExceptions === ''
|| hrefWithFixedExceptions.startsWith('mailto:')
|| hrefWithFixedExceptions.startsWith('#')
|| hrefWithFixedExceptions.startsWith('http'))
Expand Down

0 comments on commit a20d1a1

Please sign in to comment.