Skip to content

Commit

Permalink
#78 fix navigation from cookbook pages (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
drewhammond authored Jan 19, 2023
1 parent e1b458f commit 025797f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/ui/templates/partials/cookbook/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h1 class="cookbook-headline">
</h1>
</div>
<div class="col-auto">
<select class="form-select form-select-sm" id="cookbook-versions-dropdown" onchange="if (this.value) window.location.href='/ui/cookbooks/{{.cookbook.Metadata.Name}}/' + this.value">
<select class="form-select form-select-sm" id="cookbook-versions-dropdown" onchange="if (this.value) window.location.href=window.location.pathname.replace('{{.cookbook.Metadata.Version}}', this.value)">
<option selected value="{{ .cookbook.Metadata.Version }}">{{ .cookbook.Metadata.Version }}</option>
</select>
</div>
Expand Down

0 comments on commit 025797f

Please sign in to comment.