Skip to content

Commit

Permalink
Use External Scaler Artifact Hub URL for Links (kedacore#1081)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsugarman authored Mar 7, 2023
1 parent 6353b93 commit bc1a4bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
result.display_name;
element
.querySelector(".scaler-title")
.setAttribute("href", result.repository.url);
.setAttribute("href", "https://artifacthub.io/packages/keda-scaler/" + result.repository.name + "/" + result.normalized_name);
result.description &&
(element.querySelector(".description").textContent =
result.description);
Expand Down Expand Up @@ -260,7 +260,7 @@
// show all scalers by default
let queryString = index.search("");

/* By default, Lunr can only match words stored in the records/index. We want to be able to match both words and characters.
/* By default, Lunr can only match words stored in the records/index. We want to be able to match both words and characters.
To be able to perform character matching, we do wildcard search. */
if (keywords.length > 0) {
queryString = index.search(keywords);
Expand Down

0 comments on commit bc1a4bf

Please sign in to comment.