You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing 404.html when deploying localized Angular 18 app #192
When moving from a single language to multi language app, it outputs "en", "no", "fr" sub-folders, each individual copies of the whole app. When doing the deploy, it doesn't create any 404 anymore (after I added multiple languages).
I see your point. The command wont copy the index.html to 404.html because it can't find it. There should be a warning message about this. Do you think you can come up with a solution for this? First we should recognise the different folder structure, then we should copy all the index.html files. PRs are highly welcome! 👍
Hey, just a quick update – we haven't forgotten about this!
You're right that with i18n builds, there's no index.html in the root directory, only the locale subdirectories like en/, de/, etc. Our current 404.html creation just looks for index.html at the top level and fails silently when it's not there.
We've discussed this for v2.1.0, but decided to focus on the gh-pages v6 upgrade and other breaking changes first. The i18n case adds complexity – we'd need to detect locale folders, handle different configurations, and make sure we don't break existing setups. We want to get this right rather than rush it.
For now, you can work around this by creating the 404.html files manually in your build output before deploying, or using a post-build script.
Activity
JohannesHoppe commentedon Jun 14, 2024
We haven't changed any details here, the 404.html is still created?!
sondreb commentedon Jun 14, 2024
When moving from a single language to multi language app, it outputs "en", "no", "fr" sub-folders, each individual copies of the whole app. When doing the deploy, it doesn't create any 404 anymore (after I added multiple languages).
JohannesHoppe commentedon Jun 16, 2024
I see your point. The command wont copy the
index.htmlto404.htmlbecause it can't find it. There should be a warning message about this. Do you think you can come up with a solution for this? First we should recognise the different folder structure, then we should copy all theindex.htmlfiles. PRs are highly welcome! 👍JohannesHoppe commentedon Dec 30, 2025
Hey, just a quick update – we haven't forgotten about this!
You're right that with i18n builds, there's no
index.htmlin the root directory, only the locale subdirectories likeen/,de/, etc. Our current 404.html creation just looks forindex.htmlat the top level and fails silently when it's not there.We've discussed this for v2.1.0, but decided to focus on the gh-pages v6 upgrade and other breaking changes first. The i18n case adds complexity – we'd need to detect locale folders, handle different configurations, and make sure we don't break existing setups. We want to get this right rather than rush it.
For now, you can work around this by creating the
404.htmlfiles manually in your build output before deploying, or using a post-build script.We'll keep this issue open for a future release!