mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Fix Benchmarks having wrong pathname
This commit is contained in:
parent
da7ae98d5c
commit
e5625fd660
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue