Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Jun 24, 2024

Conversation

nsantacruz
Copy link
Contributor

@nsantacruz nsantacruz commented Jun 20, 2024

…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.

…faria.adminEditorApiRequest.

This fixes some issues with encoding refs properly in the URL because now all logic goes through the same function.
@nsantacruz nsantacruz merged commit a9478f9 into master Jun 24, 2024
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants