Skip to content

Commit

Permalink
Fix broken link on /docs page
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro committed Nov 24, 2024
1 parent b49cea9 commit bc08f1c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions themes/jaeger-docs/layouts/partials/docs/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@
{{ $latestUrlV1 := .RelPermalink | replaceRE $version $latestV1 }}
{{ $latestUrlV2 := .RelPermalink | replaceRE $version $latestV2 }}

{{ $latestUrl := "" }}
{{ $latestUrl := "" }}
{{ if eq $vMajor "1" }}
{{ $latestUrl = .RelPermalink | replaceRE $version $latestV1 }}
{{ $latestUrl = .RelPermalink | replaceRE $version $latestV1 }}
{{ else if eq $vMajor "2" }}
{{ $latestUrl = .RelPermalink | replaceRE $version $latestV2 }}
{{ $latestUrl = .RelPermalink | replaceRE $version $latestV2 }}
{{ else if eq $vMajor "docs" }}
{{ $latestUrl = .RelPermalink | replaceRE $version $latestV2 }}
{{ $vMajor = "2" }}
{{ end }}

<header>
Expand Down

0 comments on commit bc08f1c

Please sign in to comment.