René's URL Explorer Experiment


Title: SSG generates empty index.html if navigation in guard · Issue #31618 · angular/angular-cli · GitHub

Open Graph Title: SSG generates empty index.html if navigation in guard · Issue #31618 · angular/angular-cli

X Title: SSG generates empty index.html if navigation in guard · Issue #31618 · angular/angular-cli

Description: Which @angular/* package(s) are the source of the bug? platform-server Is this a regression? Yes Description Latest working version: 20.3.6 If a route that's configured to be prerendered, contains a guard which navigates somewhere else, ...

Open Graph Description: Which @angular/* package(s) are the source of the bug? platform-server Is this a regression? Yes Description Latest working version: 20.3.6 If a route that's configured to be prerendered, contains ...

X Description: Which @angular/* package(s) are the source of the bug? platform-server Is this a regression? Yes Description Latest working version: 20.3.6 If a route that's configured to be prerendered, conta...

Opengraph URL: https://github.com/angular/angular-cli/issues/31618

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SSG generates empty index.html if navigation in guard","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nplatform-server\n\n### Is this a regression?\n\nYes\n\n### Description\n\nLatest working version: 20.3.6\n\nIf a route that's configured to be prerendered, contains a guard which navigates somewhere else, ssg generates an empty index.html\n\nIn the reproduction: \n- When a user navigates to /subroute he should be navigated to /subroute/subsub\n- No error message or hint that this is happening is thrown\n\nWorkaround:\n- disable the guard when platform is server\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://github.com/Schoko19961/angular-ssg-empty-index-html\n\n### Please provide the exception or error you saw\n\n```true\nNo exception or warning was logged\n```\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI: 20.3.7\nNode: 22.20.0\nPackage Manager: npm 10.9.3\nOS: linux x64\n    \n\nAngular: 20.3.7\n... build, cli, common, compiler, compiler-cli, core, forms\n... platform-browser, platform-server, router, ssr\n\nPackage                      Version\n------------------------------------\n@angular-devkit/architect    0.2003.7\n@angular-devkit/core         20.3.7\n@angular-devkit/schematics   20.3.7\n@schematics/angular          20.3.7\nrxjs                         7.8.2\ntypescript                   5.9.3\nzone.js                      0.15.1\n```\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/Schoko19961","@type":"Person","name":"Schoko19961"},"datePublished":"2025-10-28T09:39:41Z","url":"https://github.com/angular/angular-cli/issues/31618"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d896d72c-b8e9-d654-b617-b88e657e6a51
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA016:3F22BC:F9CEF:166CE2:6AFDD8E5
html-safe-nonce4fb3c36f1cc18591c1600f4204b164ef592210ee20d4681f0888cc5ff3461424
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDE2OjNGMjJCQzpGOUNFRjoxNjZDRTI6NkFGREQ4RTUiLCJ2aXNpdG9yX2lkIjoiNjUxODA3NDAzNjk5ODQ5NDQzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac67e60a7c85592aa71e5d0639e74f8f80a6ff1d0544cf978935bc4dce69871a45
hovercard-subject-tagissue:3561443874
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/31618/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7657d5236528e969d85ff341eaf99a74cef2ba62b14e6e1ca1e0c15324b24b27/angular/angular-cli/issues/31618
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7657d5236528e969d85ff341eaf99a74cef2ba62b14e6e1ca1e0c15324b24b27/angular/angular-cli/issues/31618
og:image:altWhich @angular/* package(s) are the source of the bug? platform-server Is this a regression? Yes Description Latest working version: 20.3.6 If a route that's configured to be prerendered, contains ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSchoko19961
hostnamegithub.com
expected-hostnamegithub.com
None9918bd4004419458bcd838065ac2a76b76ebd11705d73909fff5ab99e996fa23
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea231c174493a6a442c0b0544475c918b30128208
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/31618#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F31618
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F31618
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/issues/31618
Reloadhttps://github.com/angular/angular-cli/issues/31618
Reloadhttps://github.com/angular/angular-cli/issues/31618
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues196 (196)https://github.com/angular/angular-cli/issues
Pull requests20 (20)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
https://github.com/angular/angular-cli
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/31618
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/31618
Bughttps://github.com/angular/angular-cli/issues?q=type:"Bug"
#31619https://github.com/angular/angular-cli/pull/31619
SSG generates empty index.html if navigation in guardhttps://github.com/angular/angular-cli/issues/31618#top
#31619https://github.com/angular/angular-cli/pull/31619
https://github.com/alan-agius4
angular/build:applicationhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22angular%2Fbuild%3Aapplication%22
area: @angular/buildhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular%2Fbuild%22
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
severity5: regressionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity5%3A%20regression%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
https://github.com/Schoko19961
Schoko19961https://github.com/Schoko19961
on Oct 28, 2025https://github.com/angular/angular-cli/issues/31618#issue-3561443874
https://github.com/Schoko19961/angular-ssg-empty-index-htmlhttps://github.com/Schoko19961/angular-ssg-empty-index-html
Schoko19961https://github.com/Schoko19961
on Oct 28, 2025https://github.com/angular/angular-cli/issues/31618#event-20553167352
alan-agius4https://github.com/alan-agius4
angular/angularhttps://github.com/angular/angular
on Oct 28, 2025https://github.com/angular/angular-cli/issues/31618#event-20553167398
alan-agius4https://github.com/alan-agius4
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
severity5: regressionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity5%3A%20regression%22
area: @angular/buildhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular%2Fbuild%22
angular/build:applicationhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22angular%2Fbuild%3Aapplication%22
on Oct 28, 2025https://github.com/angular/angular-cli/issues/31618#event-20553542567
alan-agius4https://github.com/alan-agius4
Bughttps://github.com/angular/angular-cli/issues?q=type:"Bug"
on Oct 28, 2025https://github.com/angular/angular-cli/issues/31618#event-20553545048
alan-agius4https://github.com/alan-agius4
on Oct 28, 2025https://github.com/angular/angular-cli/issues/31618#event-20553545230
alan-agius4https://github.com/alan-agius4
on Oct 28, 2025https://github.com/angular/angular-cli/issues/31618#event-20553610488
feat(@angular/build): handle redirects from guards during prerenderinghttps://github.com/alan-agius4/angular-cli/commit/a242e23dcc074d1d46d02e41fa73410b0bcca13a
https://docs.github.com/articles/closing-issues-via-commit-messages
a242e23https://github.com/alan-agius4/angular-cli/commit/a242e23dcc074d1d46d02e41fa73410b0bcca13a
feat(@angular/build): handle redirects from guards during prerenderinghttps://github.com/alan-agius4/angular-cli/commit/599bdf452aae655851672c1d9b12dcefde091818
https://docs.github.com/articles/closing-issues-via-commit-messages
599bdf4https://github.com/alan-agius4/angular-cli/commit/599bdf452aae655851672c1d9b12dcefde091818
fix(@angular/build): handle redirects from guards during prerenderinghttps://github.com/alan-agius4/angular-cli/commit/f7157d10a45f3661d8afb4cbc8be72034d7f9c4a
https://docs.github.com/articles/closing-issues-via-commit-messages
f7157d1https://github.com/alan-agius4/angular-cli/commit/f7157d10a45f3661d8afb4cbc8be72034d7f9c4a
alan-agius4https://github.com/alan-agius4
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#31619https://github.com/angular/angular-cli/pull/31619
on Oct 28, 2025https://github.com/angular/angular-cli/issues/31618#event-20563098335
alan-agius4https://github.com/alan-agius4
on Oct 28, 2025https://github.com/angular/angular-cli/issues/31618#event-20563098409
fix(@angular/build): handle redirects from guards during prerenderinghttps://github.com/angular/angular-cli/commit/cc16b1006522522d8ad2f4735d18ca625a12ec1d
https://docs.github.com/articles/closing-issues-via-commit-messages
cc16b10https://github.com/angular/angular-cli/commit/cc16b1006522522d8ad2f4735d18ca625a12ec1d
fix(@angular/build): handle redirects from guards during prerenderinghttps://github.com/angular/angular-cli/commit/a41f4e860dd28bee28af47c1513f55450ca74b5f
https://docs.github.com/articles/closing-issues-via-commit-messages
a41f4e8https://github.com/angular/angular-cli/commit/a41f4e860dd28bee28af47c1513f55450ca74b5f
fix(@angular/build): handle redirects from guards during prerenderinghttps://github.com/angular/angular-cli/commit/45e498f9576ff83eebe02deb235d36498ce06bde
https://docs.github.com/articles/closing-issues-via-commit-messages
45e498fhttps://github.com/angular/angular-cli/commit/45e498f9576ff83eebe02deb235d36498ce06bde
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Nov 28, 2025https://github.com/angular/angular-cli/issues/31618#issuecomment-3587555883
automatic conversation locking policyhttps://github.com/angular/angular/blob/f0fbced1c55bc8b8ed9df01cea99df42f3e7eae3/contributing-docs/auto-issue-locking.md
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Nov 28, 2025https://github.com/angular/angular-cli/issues/31618#event-21233034523
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/31618
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/31618
alan-agius4https://github.com/alan-agius4
angular/build:applicationhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22angular%2Fbuild%3Aapplication%22
area: @angular/buildhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular%2Fbuild%22
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
severity5: regressionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity5%3A%20regression%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
Bughttps://github.com/angular/angular-cli/issues?q=type:"Bug"
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.