Skip to content

Commit

Permalink
fix: we even also need to involve the latest "version" (#3435)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke authored Nov 8, 2024
1 parent 00158be commit 64f16ed
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ const VersionSwitcher = () => {

const handleChange = (branch: string) => {
const lastPath = router.asPath;
const isTag = branch.split('.').length === 3 && branch.startsWith('v');
const isTag =
(branch.split('.').length === 3 && branch.startsWith('v')) ||
branch === 'latest';
window.location.replace(
sanitize(
`https://${owner}.github.io/${repo}${
Expand Down

0 comments on commit 64f16ed

Please sign in to comment.