Skip to content

Commit

Permalink
Merge pull request #1992 from Sefaria/bug/sc-28672/several-topic-page…
Browse files Browse the repository at this point in the history
…s-aren-t-loading

fix(Topic Pages): encodeURI should be used instead of encodeURIComponent
  • Loading branch information
stevekaplan123 authored Aug 6, 2024
2 parents 90f4776 + 6ed5ad9 commit c545494
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions static/js/sefaria/sefaria.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,8 @@ Sefaria = extend(Sefaria, {
refStrs[refStrs.length-1] += last.length ? `|${ref}` : ref;
}
});

let promises = refStrs.map(refStr => this._cachedApiPromise({
url: `${hostStr}${encodeURIComponent(refStr)}${paramStr}`,
url: encodeURI(`${hostStr}${refStr}${paramStr}`),
key: refStr + paramStr,
store: this._bulkTexts
}));
Expand Down

0 comments on commit c545494

Please sign in to comment.