Sefaria / Sefaria-Project

New Interfaces for Jewish Texts
https://www.sefaria.org
647 stars 265 forks source link

fix(topic): encode ref in case it has question marks or other problem… #1932

Closed nsantacruz closed 4 weeks ago

nsantacruz commented 1 month ago

…atic characters for a URI.

Along the way, this PR removes requestWithCallback() which isn't a great name or location for a function and moves it to Sefaria.adminEditorApiRequest(). It also refactors the function so some functionality is deferred to the calling functions so the function can be a bit more general.