Skip to content

Fix base href replacement in GitHub Pages deployment#36

Merged
codemonkey85 merged 2 commits intomainfrom
copilot/fix-broken-app-on-github-pages
Dec 9, 2025
Merged

Fix base href replacement in GitHub Pages deployment#36
codemonkey85 merged 2 commits intomainfrom
copilot/fix-broken-app-on-github-pages

Conversation

Copy link
Contributor

Copilot AI commented Dec 9, 2025

The app fails on GitHub Pages with 404 errors for all resources. The deployment workflow's sed command doesn't match the actual HTML format in index.html, leaving base href as / instead of /SoundTest/.

Changes

  • Updated sed pattern in .github/workflows/main.yml to match actual HTML format

Before:

sed -i 's/<base href="\/" \/>/<base href="\/SoundTest\/" \/>/g'

Pattern expects: <base href="/" /> (with space)

After:

sed -i 's|<base href="/"|<base href="/SoundTest/"|g'

Matches actual: <base href="/"/> (no space)

Original prompt

This section details on the original issue you should resolve

<issue_title>The published app does not work</issue_title>
<issue_description>Image</issue_description>

<agent_instructions>Please figure out why the app is broken on GitHub Pages after being published. Keep in mind it works perfectly when debugging locally.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: codemonkey85 <1414036+codemonkey85@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix published app not working on GitHub Pages Fix base href replacement in GitHub Pages deployment Dec 9, 2025
@codemonkey85 codemonkey85 marked this pull request as ready for review December 9, 2025 06:10
@codemonkey85 codemonkey85 merged commit c328d8a into main Dec 9, 2025
@codemonkey85 codemonkey85 deleted the copilot/fix-broken-app-on-github-pages branch December 9, 2025 06:10
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.

The published app does not work

2 participants