diff --git a/modules/router-store/src/serializers/minimal_serializer.ts b/modules/router-store/src/serializers/minimal_serializer.ts index e68e248ac3..aaf8428904 100644 --- a/modules/router-store/src/serializers/minimal_serializer.ts +++ b/modules/router-store/src/serializers/minimal_serializer.ts @@ -43,7 +43,10 @@ export class MinimalRouterStateSerializer pathMatch: route.routeConfig.pathMatch, redirectTo: route.routeConfig.redirectTo, outlet: route.routeConfig.outlet, - title: route.routeConfig.title, + title: + typeof route.routeConfig.title === 'string' + ? route.routeConfig.title + : undefined, } : null, queryParams: route.queryParams,