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

initialNavigation: 'enabledBlocking' redirects to root #1639

Open
BojanKogoj opened this issue Jan 12, 2023 · 0 comments
Open

initialNavigation: 'enabledBlocking' redirects to root #1639

BojanKogoj opened this issue Jan 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@BojanKogoj
Copy link

🐞 Bug report

Description

After adding initialNavigation (which solves app reloading on Angular bootstrap), all pages will redirect to root on reload. Also using ngx-translate-router - without ngx-translate-router-scully-plugin.

The weird part is /sl/terms-and-conditions/ will return content of root, and not terms and conditions. If I look into dist/static/sl/terms-and-conditions/index.html content is of root. Without changing initialNavigation content is correct.

🔬 Minimal Reproduction

Add to project

initialNavigation: 'enabledBlocking',

(not sure if this is enough)

💻Your Environment

Angular Version:


Angular CLI: 15.0.4
Node: 16.13.2
Package Manager: npm 8.1.2
OS: win32 x64

Angular: 15.0.4
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1500.4
@angular-devkit/build-angular   15.0.4
@angular-devkit/core            15.0.4
@angular-devkit/schematics      15.0.4
@angular/cdk                    15.0.3
@angular/platform-server        12.2.17
@angular/youtube-player         15.0.3
@schematics/angular             15.0.4
rxjs                            7.5.6
typescript                      4.8.3

Scully Version:


    "@scullyio/init": "^2.1.41",
    "@scullyio/ng-lib": "^2.1.0",
    "@scullyio/platform-server": "^2.1.0",
    "@scullyio/scully": "^2.1.0",
    "@scullyio/scully-plugin-puppeteer": "^2.1.41",

🔥 Exception or Error

All pages redirect to root on reload.

@BojanKogoj BojanKogoj added the bug Something isn't working label Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant