scullyio / scully

The Static Site Generator for Angular apps

Home Page:https://scully.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

initialNavigation: 'enabledBlocking' redirects to root

BojanKogoj opened this issue ยท comments

๐Ÿž 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.