Fix DocC data and documentation paths in JavaScript#24
Merged
SoundBlaster merged 1 commit intomainfrom Nov 11, 2025
Merged
Conversation
After fixing HTML resource paths, the site loads but shows "page not found" because JavaScript code has hardcoded absolute paths. DocC is a Single Page Application (SPA) that loads data (JSON files) dynamically. The --hosting-base-path parameter only configures routing but doesn't fix absolute paths in the generated JavaScript code. JavaScript paths that need fixing: - "/data/" → "/NavigationSplitView/data/" - "/documentation/" → "/NavigationSplitView/documentation/" - "/tutorials/" → "/NavigationSplitView/tutorials/" Without this fix, the SPA tries to load data from: https://soundblaster.github.io/data/... Instead of: https://soundblaster.github.io/NavigationSplitView/data/... This causes 404 errors and the "page not found" message. Also improved debug output to show full index.html and check for NavigationSplitView references in JS files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After fixing HTML resource paths, the site loads but shows "page not found" because JavaScript code has hardcoded absolute paths.
DocC is a Single Page Application (SPA) that loads data (JSON files) dynamically. The --hosting-base-path parameter only configures routing but doesn't fix absolute paths in the generated JavaScript code.
JavaScript paths that need fixing:
Without this fix, the SPA tries to load data from:
https://soundblaster.github.io/data/...
Instead of:
https://soundblaster.github.io/NavigationSplitView/data/...
This causes 404 errors and the "page not found" message.
Also improved debug output to show full index.html and check for NavigationSplitView references in JS files.