@@ -76,7 +76,10 @@ import { MetaTagsService } from '~/app/services/meta-tags.service';
7676} )
7777export class AppComponent implements OnInit , OnDestroy {
7878 private subscription : Subscription | undefined ;
79- private publicRoutes = new Set ( [ '/home' , '/about' , '/login' , '/advanced' ] ) ;
79+ private publicRoutes = new Set ( [
80+ '/home' , '/about' , '/login' , '/advanced' ,
81+ '/advanced/status' , '/advanced/debug-info' , '/advanced/admin-links' ,
82+ ] ) ;
8083 private fullWidthRoutes : string [ ] = [ '/settings' , '/stats' ] ;
8184
8285 public loading : boolean = true ;
@@ -93,7 +96,7 @@ export class AppComponent implements OnInit, OnDestroy {
9396 private globalMessageService : GlobalMessageService ,
9497 private errorHandler : ErrorHandlerService ,
9598 public _themeService : ThemeService ,
96- public _hitCountingService : HitCountingService ,
99+ public hitCountingService : HitCountingService ,
97100 private accessibilityService : AccessibilityService ,
98101 private environmentService : EnvService ,
99102 private featureService : FeatureService ,
@@ -112,7 +115,10 @@ export class AppComponent implements OnInit, OnDestroy {
112115 . pipe ( filter ( ( e ) => e instanceof NavigationEnd ) )
113116 . subscribe ( ( event ) => {
114117 const navEndEvent = event as NavigationEnd ;
118+ // Set meta tags for the current route
115119 this . metaTagsService . setRouteMeta ( navEndEvent . urlAfterRedirects ) ;
120+ // Track page view for analytics
121+ this . hitCountingService . trackPageView ( navEndEvent . urlAfterRedirects ) ;
116122 } ) ;
117123
118124 // Check auth state
@@ -123,12 +129,6 @@ export class AppComponent implements OnInit, OnDestroy {
123129 const currentRoute = event . urlAfterRedirects || event . url ;
124130 this . pagePath = currentRoute ;
125131
126- // if (currentRoute.startsWith('/advanced')) {
127- // this.loading = false;
128- // this.metaTagsService.allowRobots(false);
129- // return;
130- // }
131-
132132 // Configuration for docs pages (at /about)
133133 if ( currentRoute . startsWith ( '/about' ) ) {
134134 this . checkIfDocsDisabled ( currentRoute ) ;
0 commit comments