Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ghostfolio/commit/ad961f303958de9739af497099696efc6934aad6
You should set ROOT_URL correctly, otherwise the web may not work correctly.
5 changed files with
19 additions and
6 deletions
@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed the performance chart by considering the investment
- Fixed missing header of public pages (_About_, _Pricing_ , _Resources_ )
## 1.7.0 - 22.05.2021
@ -9,14 +9,14 @@ import { ViewMode } from '@prisma/client';
import { EMPTY } from 'rxjs' ;
import { catchError } from 'rxjs/operators' ;
import { DataService } from '../services/data.service' ;
import { SettingsStorageService } from '../services/settings-storage.service' ;
import { UserService } from '../services/user/user.service' ;
@Injectable ( { providedIn : 'root' } )
export class AuthGuard implements CanActivate {
private static PUBLIC_PAGE_ROUTES = [ '/about' , '/pricing' , '/resources' ] ;
constructor (
private dataService : DataService ,
private router : Router ,
private settingsStorageService : SettingsStorageService ,
private userService : UserService
@ -35,7 +35,10 @@ export class AuthGuard implements CanActivate {
. get ( )
. pipe (
catchError ( ( ) = > {
if ( state . url !== '/start' ) {
if ( AuthGuard . PUBLIC_PAGE_ROUTES . includes ( state . url ) ) {
resolve ( true ) ;
return EMPTY ;
} else if ( state . url !== '/start' ) {
this . router . navigate ( [ '/start' ] ) ;
resolve ( false ) ;
return EMPTY ;
@ -1,9 +1,12 @@
import { NgModule } from '@angular/core' ;
import { RouterModule , Routes } from '@angular/router' ;
import { AuthGuard } from '@ghostfolio/client/core/auth.guard' ;
import { AboutPageComponent } from './about-page.component' ;
const routes : Routes = [ { path : '' , component : AboutPageComponent } ] ;
const routes : Routes = [
{ path : '' , component : AboutPageComponent , canActivate : [ AuthGuard ] }
] ;
@NgModule ( {
imports : [ RouterModule . forChild ( routes ) ] ,
@ -1,9 +1,12 @@
import { NgModule } from '@angular/core' ;
import { RouterModule , Routes } from '@angular/router' ;
import { AuthGuard } from '@ghostfolio/client/core/auth.guard' ;
import { PricingPageComponent } from './pricing-page.component' ;
const routes : Routes = [ { path : '' , component : PricingPageComponent } ] ;
const routes : Routes = [
{ path : '' , component : PricingPageComponent , canActivate : [ AuthGuard ] }
] ;
@NgModule ( {
imports : [ RouterModule . forChild ( routes ) ] ,
@ -1,9 +1,12 @@
import { NgModule } from '@angular/core' ;
import { RouterModule , Routes } from '@angular/router' ;
import { AuthGuard } from '@ghostfolio/client/core/auth.guard' ;
import { ResourcesPageComponent } from './resources-page.component' ;
const routes : Routes = [ { path : '' , component : ResourcesPageComponent } ] ;
const routes : Routes = [
{ path : '' , component : ResourcesPageComponent , canActivate : [ AuthGuard ] }
] ;
@NgModule ( {
imports : [ RouterModule . forChild ( routes ) ] ,