Skip to content

Conversation

@XhmikosR
Copy link
Member

@XhmikosR XhmikosR commented Mar 5, 2024

Cast to string when comparing the versions, otherwise we were comparing numbers with strings.

Also, move checks to variables.

Fixes 404 errors in the version picker.


Alternatively, we could just make sure we are using quoted strings in front matter, but this should work in both cases.

(check the version picker)
main: https://twbs-bootstrap.netlify.app/docs/5.3/helpers/icon-link/
Preview: https://deploy-preview-39738--twbs-bootstrap.netlify.app/docs/5.3/helpers/icon-link/

Split from #39724

Cast to string when comparing the versions, otherwise we were comparing numbers with strings

Fixes 404 errors in the version picker
@XhmikosR XhmikosR added the docs label Mar 5, 2024
@XhmikosR XhmikosR marked this pull request as ready for review March 5, 2024 14:23
@XhmikosR XhmikosR requested review from julien-deramond and mdo March 5, 2024 15:01
Copy link
Member

@julien-deramond julien-deramond left a comment

Choose a reason for hiding this comment

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

Alternatively, we could just make sure we are using quoted strings in front matter, but this should work in both cases.

Works nicely with or without the quoted strings in the frontmatter so LGTM to be merged as is. Good catch!

@XhmikosR XhmikosR merged commit 87be2b9 into main Mar 5, 2024
@XhmikosR XhmikosR deleted the XhmikosR-patch-1 branch March 5, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants