Skip to content

Commit ed2dba0

Browse files
committed
Fix search select handler so it goes to the right url
1 parent 2185cae commit ed2dba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

themes/hugo-sustain/static/js/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ autocomplete(
5555
]
5656
)
5757
.on('autocomplete:selected', function(event, suggestion, dataset) {
58-
window.location.assign('/documentation/v10/getting-started/');
58+
window.location.assign(`/${suggestion.url}`);
5959
});

0 commit comments

Comments
 (0)