René's URL Explorer Experiment


Title: Scripts.bundle.js deploy-url wrongly prefixed when deviating from standard project structure · Issue #8127 · angular/angular-cli · GitHub

Open Graph Title: Scripts.bundle.js deploy-url wrongly prefixed when deviating from standard project structure · Issue #8127 · angular/angular-cli

X Title: Scripts.bundle.js deploy-url wrongly prefixed when deviating from standard project structure · Issue #8127 · angular/angular-cli

Description: Bug Report or Feature Request (mark with an x) - [X] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.4.3 node: 6.11.3 os: darwin x64 Repro steps. SETUP: $ ng new scripts-test $ npm ins...

Open Graph Description: Bug Report or Feature Request (mark with an x) - [X] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.4.3 node: 6.11.3 os: darwin x64 Repro steps...

X Description: Bug Report or Feature Request (mark with an x) - [X] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.4.3 node: 6.11.3 os: darwin x64 Repro st...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Scripts.bundle.js deploy-url wrongly prefixed when deviating from standard project structure","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [X] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Versions.\r\n\u003c!--\r\nOutput from: `ng --version`.\r\nIf nothing, output from: `node --version` and `npm --version`.\r\n  Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)\r\n-->\r\n@angular/cli: 1.4.3\r\nnode: 6.11.3\r\nos: darwin x64\r\n\r\n### Repro steps.\r\n\u003c!--\r\nSimple steps to reproduce this bug.\r\nPlease include: commands run, packages added, related code changes.\r\nA link to a sample repo would help too.\r\n-->\r\nSETUP:\r\n$ ng new scripts-test\r\n$ npm install --save bootstrap\r\n\r\n--> Move src/main.ts to src/app/main.ts, and update the reference in .angular-cli.json accordingly:\r\nFROM:\r\n\"main\": \"main.ts\",\r\nTO:\r\n\"main\": \"app/main.ts\",\r\n\r\n--> Move src/index.html to src/app/index.html, and update the reference in .angular-cli.json accordingly:\r\nFROM:\r\n\"index\": \"index.html\",\r\nTO:\r\n\"index\": \"app/index.html\",\r\n\r\n--> Update import urls in src/app/main.ts\r\nFROM:\r\nimport { AppModule } from './app/app.module';\r\nimport { environment } from './environments/environment';\r\nTO:\r\nimport { AppModule } from './app.module';\r\nimport { environment } from './../environments/environment';\r\n\r\n--> add to scripts array in .angular-cli.json the line \"../node_modules/bootstrap/dist/js/bootstrap.js\"\r\nFROM:\r\n\"scripts\": [],\r\nTO:\r\n\"scripts\": [\"../node_modules/bootstrap/dist/js/bootstrap.js\"],\r\n\r\n--> Build the project with deploy-url\r\n$ ng build --deploy-url /app\r\n\r\n### Desired functionality.\r\n\u003c!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\n-->\r\nI would like to see some form of consistency within the url building for the bundles. As shown below, every bundles gets prefixed correctly with the deploy-url, except for the scripts bundle.\r\n\r\nResult within index.html:\r\n\u003cscript type=\"text/javascript\" src=\"/app/inline.bundle.js\">\u003c/script>\u003cscript type=\"text/javascript\" src=\"/app/polyfills.bundle.js\">\u003c/script>\r\n**\u003cscript type=\"text/javascript\" src=\"/app/../scripts.bundle.js\">\u003c/script>**\r\n\u003cscript type=\"text/javascript\" src=\"/app/styles.bundle.js\">\u003c/script>\u003cscript type=\"text/javascript\" src=\"/app/vendor.bundle.js\">\u003c/script>\u003cscript type=\"text/javascript\" src=\"/app/main.bundle.js\">\u003c/script>\u003c/body>\r\n\r\n\r\n### Mention any other details that might be useful.\r\n\u003c!-- Please include a link to the repo if this is related to an OSS project. -->\r\nI am using the Angular CLI for a multi-page application (technically hybrid), where I want to encapsulate each separate page in a folder within the /src folder. When I build my application with a specified --deploy-url flag, all urls for the bundles within the index page get built correctly, except for the scripts bundle. This one gets prefixed with \"../\" before being prepended with the deploy-url, rendering the package unreachable when loading the html in a web browser.\r\n","author":{"url":"https://github.com/ArnaudHambenne","@type":"Person","name":"ArnaudHambenne"},"datePublished":"2017-10-20T10:03:42Z","url":"https://github.com/angular/angular-cli/issues/8127"}

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:843e162f-22fd-59ee-f97a-207c6177ebe9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAFEA:2303A6:1115C30:176715E:6B056462
html-safe-nonce0e5f4eb8dcd42c85e780c045dbbcca4cd42b6568aa53d5600f10e9248ff03ce8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkVBOjIzMDNBNjoxMTE1QzMwOjE3NjcxNUU6NkIwNTY0NjIiLCJ2aXNpdG9yX2lkIjoiMzM4NTkyNTgzMDIzNTc0MzMzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb7256d6aba6215de4386c7631dd237812f5d963583ff3138c6baa4f470c668b8
hovercard-subject-tagissue:267125762
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/8127/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c28cb38092f1248648fc58efee60b11a17b6dfdca13c1828fce53422e18bc589/angular/angular-cli/issues/8127
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c28cb38092f1248648fc58efee60b11a17b6dfdca13c1828fce53422e18bc589/angular/angular-cli/issues/8127
og:image:altBug Report or Feature Request (mark with an x) - [X] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.4.3 node: 6.11.3 os: darwin x64 Repro steps...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameArnaudHambenne
hostnamegithub.com
expected-hostnamegithub.com
None1be5cc09efdd4833c24a4ffa71d698e3999fa09071e159fe14c2c08e41c98331
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
releasef6d69234e682c947a48074340e69d45d5901de31
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/8127#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F8127
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%2F8127
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/8127
Reloadhttps://github.com/angular/angular-cli/issues/8127
Reloadhttps://github.com/angular/angular-cli/issues/8127
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests26 (26)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/8127
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/8127
Scripts.bundle.js deploy-url wrongly prefixed when deviating from standard project structurehttps://github.com/angular/angular-cli/issues/8127#top
https://github.com/filipesilva
P1https://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22P1%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/ArnaudHambenne
ArnaudHambennehttps://github.com/ArnaudHambenne
on Oct 20, 2017https://github.com/angular/angular-cli/issues/8127#issue-267125762
filipesilvahttps://github.com/filipesilva
on Oct 25, 2017https://github.com/angular/angular-cli/issues/8127#event-1309500933
filipesilvahttps://github.com/filipesilva
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
P1https://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22P1%22
on Oct 25, 2017https://github.com/angular/angular-cli/issues/8127#event-1309501075
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Oct 25, 2017https://github.com/angular/angular-cli/issues/8127#issuecomment-339276787
#7279https://github.com/angular/angular-cli/pull/7279
https://github.com/clydin
clydinhttps://github.com/clydin
on Jan 5, 2018https://github.com/angular/angular-cli/issues/8127#issuecomment-355670994
clydinhttps://github.com/clydin
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jan 5, 2018https://github.com/angular/angular-cli/issues/8127#event-1412016811
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 7, 2019https://github.com/angular/angular-cli/issues/8127#issuecomment-529141073
automatic conversation locking policyhttps://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 7, 2019https://github.com/angular/angular-cli/issues/8127#event-2616385192
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/8127
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/8127
filipesilvahttps://github.com/filipesilva
P1https://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22P1%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
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.