mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -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
|
// urls like /:type/:slug/benchmarks
|
||||||
const {
|
const {
|
||||||
pathSlug,
|
pathSlug,
|
||||||
subSlug = null
|
subSlug = null,
|
||||||
|
pathname
|
||||||
} = getPathPartsFromAstroRequest( Astro.request )
|
} = getPathPartsFromAstroRequest( Astro.request )
|
||||||
|
|
||||||
const isBenchmarkPage = subSlug === 'benchmarks'
|
const isBenchmarkPage = subSlug === 'benchmarks'
|
||||||
|
|
@ -62,6 +63,7 @@ if ( isBenchmarkPage ) {
|
||||||
...preloads
|
...preloads
|
||||||
]
|
]
|
||||||
|
|
||||||
|
headOptions.pathname = pathname
|
||||||
}
|
}
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue