Skip to content

fix: gracefully handle page loading failures during search indexing#2675

Open
kokovtsev wants to merge 1 commit intodocsifyjs:developfrom
kokovtsev:fix/search-indexing-404
Open

fix: gracefully handle page loading failures during search indexing#2675
kokovtsev wants to merge 1 commit intodocsifyjs:developfrom
kokovtsev:fix/search-indexing-404

Conversation

@kokovtsev
Copy link

Summary

Gracefully handle page loading failures during the search indexing processing.

Before this fix, the loaded page counter was incremented only in the successful branch of Docsify.get, so if any request failed then the counter never reached the expected value and saveData was never called.

Related issue, if any:

Fixes #2674

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

For any code change,

  • Related documentation has been updated, if needed
  • Related tests have been added or updated, if needed

Does this PR introduce a breaking change?

  • Yes
  • No

Tested in the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge

@vercel
Copy link

vercel bot commented Feb 5, 2026

@kokovtsev is attempting to deploy a commit to the Docsify Team on Vercel.

A member of the Team first needs to authorize it.

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.

Search indexing does not work if some links are broken

1 participant