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

Fix docs-versions.html #39738

Merged
merged 3 commits into from Mar 5, 2024
Merged

Fix docs-versions.html #39738

merged 3 commits into from Mar 5, 2024

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
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
14 checks passed
@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
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants