Skip to content

fix(bioforest): use relative path for genesis block URLs - #195

Merged
Gaubee merged 1 commit into
mainfrom
fix/genesis-block-404
Jan 9, 2026
Merged

Gaubee merged 1 commit into
mainfrom
fix/genesis-block-404

Conversation

@Gaubee

@Gaubee Gaubee commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Use ./configs/genesis instead of /configs/genesis to ensure correct URL resolution when deployed to subdirectories like GitHub Pages at /KeyApp/.

Problem

When deployed to GitHub Pages at https://bioforestchain.github.io/KeyApp/, the absolute path /configs/genesis resolves to https://bioforestchain.github.io/configs/genesis (missing the /KeyApp/ subdirectory), resulting in 404 errors.

Solution

Changed from absolute path to relative path using new URL('./configs/genesis', document.baseURI) which correctly resolves to https://bioforestchain.github.io/KeyApp/configs/genesis.

Fixes #194

Use './configs/genesis' instead of '/configs/genesis' to ensure
correct URL resolution when deployed to subdirectories like GitHub
Pages at /KeyApp/.

Fixes #194
@Gaubee
Gaubee merged commit 3562df9 into main Jan 9, 2026
8 of 10 checks passed
@Gaubee
Gaubee deleted the fix/genesis-block-404 branch January 9, 2026 03:25
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.

fix(bioforest): Genesis block 404 on GitHub Pages deployment

1 participant