Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

docs: clarify 404.html setup for GitHub Pages in deployment guide#66162

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
EswarBalasubramanian wants to merge1 commit intoangular:main
base:main
Choose a base branch
Loading
fromEswarBalasubramanian:fix-gh-pages-docs

Conversation

@EswarBalasubramanian

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Documentation content changes

What is the current behavior?

Issue Number:#49128

The deployment guide instructs users to "configure the fallback route or 404 page toindex.html" for GitHub Pages, but doesn't warn against a common pitfall: manually copyingindex.html to404.html. This approach fails silently because Angular CLI injects dynamic script references with content hashes (e.g.,main.abc123.js) that change on every build, leading to blank pages on deep links or page refreshes.

What is the new behavior?

The documentation now includes:

  1. A critical warning explaining why manually copyingindex.html to404.html is error-prone and defeats cache-busting
  2. Option A (Recommended): Useangular-cli-ghpages which handles 404 fallback automatically viang deploy
  3. Option B: Use the redirect-based approach fromspa-github-pages with an explanation ofpathSegmentsToKeep for project sites

Does this PR introduce a breaking change?

  • No

Other information

This change helps developers avoid a common mistake when deploying Angular apps to GitHub Pages, especially those new to SPA hosting on static file servers.

@angular-robotangular-robotbot added the area: docsRelated to the documentation labelDec 18, 2025
@ngbotngbotbot added this to theBacklog milestoneDec 18, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@josephperrottjosephperrottAwaiting requested review from josephperrott

@alan-agius4alan-agius4Awaiting requested review from alan-agius4

Assignees

No one assigned

Labels

area: docsRelated to the documentation

Projects

None yet

Milestone

Backlog

Development

Successfully merging this pull request may close these issues.

1 participant

@EswarBalasubramanian

[8]ページ先頭

©2009-2025 Movatter.jp