Default to ‘none’ route type

This commit is contained in:
Sam Carlton 2022-07-16 21:59:44 -05:00
parent d18339f4d6
commit e852d275ef

View file

@ -208,7 +208,7 @@ export class PageHead {
structuredData = null, structuredData = null,
domain = getSiteUrl(), domain = getSiteUrl(),
pathname, pathname = '',
} = options } = options
this.title = title this.title = title
@ -234,6 +234,8 @@ export class PageHead {
} }
get routeType () { get routeType () {
if ( this.pathname.length < 2 ) return 'none'
return getRouteType( this.pathname ) return getRouteType( this.pathname )
} }