Fix Benchmarks having wrong pathname

This commit is contained in:
Sam Carlton 2022-07-07 00:05:37 -05:00
parent da7ae98d5c
commit e5625fd660

View file

@ -32,7 +32,8 @@ applyResponseDefaults( Astro )
// urls like /:type/:slug/benchmarks
const {
pathSlug,
subSlug = null
subSlug = null,
pathname
} = getPathPartsFromAstroRequest( Astro.request )
const isBenchmarkPage = subSlug === 'benchmarks'
@ -62,6 +63,7 @@ if ( isBenchmarkPage ) {
...preloads
]
headOptions.pathname = pathname
}
---