mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Return object for getPathPartsFromAstroRequest
This commit is contained in:
parent
5dbbca4610
commit
5d6e4954da
3 changed files with 23 additions and 8 deletions
|
|
@ -25,11 +25,10 @@ if ( redirectResponse !== null ) {
|
|||
// Get type and slug from the request path
|
||||
// so that we don't have extra parts for
|
||||
// urls like /:type/:slug/benchmarks
|
||||
const [
|
||||
,
|
||||
const {
|
||||
pathSlug,
|
||||
subSlug = null
|
||||
] = getPathPartsFromAstroRequest( Astro.request )
|
||||
} = getPathPartsFromAstroRequest( Astro.request )
|
||||
|
||||
const isBenchmarkPage = subSlug === 'benchmarks'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue