Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prerender generates wrong path for routes from routesFile if baseHref contains host #29860

Closed
constantant opened this issue Mar 14, 2025 · 2 comments
Labels
needs: repro steps We cannot reproduce the issue with the information given

Comments

@constantant
Copy link

constantant commented Mar 14, 2025

Which @angular/* package(s) are the source of the bug?

router, Don't known / other

Is this a regression?

Yes

Description

I try to prerender a web app which uses CDN for the static files so document.baseURI and APP_BASE_HREF are different and document.baseURI looks like https://aws-blablabla.com/version-0001/build-0002/.

For the discovered routes everything works fine but if I need to indicate the dynamic ones it generates the wrong path like https:/ aws-blablabla.com/ version-0001/ build-0002/ dynamic/ path/ 01/ but it must be dynamic/ path/ 01/

Please provide the environment you discovered this bug in (run ng version)

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 19.2.1
Node: 20.14.0
Package Manager: npm 9.6.2
OS: win32 x64

Angular: 19.2.1
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, platform-server, router, ssr

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.1902.1
@angular-devkit/build-angular      19.2.1
@angular-devkit/core               19.2.1
@angular-devkit/schematics         19.2.1
@angular/cdk                       19.2.2
@angular/components-examples       19.2.0-next.4+sha-c40c701
@angular/google-maps               19.2.2
@angular/material                  19.2.2
@angular/material-experimental     19.2.2
@angular/material-moment-adapter   19.2.2
@angular/youtube-player            19.2.2
@schematics/angular                19.0.4
ng-packagr                         19.0.1
rxjs                               7.8.1
typescript                         5.6.3
zone.js                            0.15.0

@ngbot ngbot bot modified the milestone: needsTriage Mar 14, 2025
@alan-agius4 alan-agius4 transferred this issue from angular/angular Mar 14, 2025
@alan-agius4
Copy link
Collaborator

Can you please provide a minimal reproduction?

@alan-agius4 alan-agius4 added needs: more info Reporter must clarify the issue needs: repro steps We cannot reproduce the issue with the information given and removed needs: more info Reporter must clarify the issue labels Mar 18, 2025
@alan-agius4
Copy link
Collaborator

Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.

If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template.

@alan-agius4 alan-agius4 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: repro steps We cannot reproduce the issue with the information given
Projects
None yet
Development

No branches or pull requests

2 participants