mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Catch redirects for /app/
This commit is contained in:
parent
91c250f462
commit
ea52e7051e
1 changed files with 6 additions and 3 deletions
|
|
@ -4,16 +4,19 @@
|
|||
|
||||
import axios from 'axios'
|
||||
|
||||
import { catchRedirectResponse } from '~/helpers/astro/request.js'
|
||||
import { ListingDetails } from '~/helpers/listing-page.js'
|
||||
import { getPathPartsFromAstroRequest } from '~/helpers/url.js'
|
||||
|
||||
import Layout from '../../layouts/default.astro'
|
||||
import Listing from '../../components/default-listing.astro'
|
||||
|
||||
// const {
|
||||
// appPath
|
||||
// } = Astro.params
|
||||
|
||||
const redirectResponse = await catchRedirectResponse( Astro )
|
||||
|
||||
if ( redirectResponse !== null ) {
|
||||
return redirectResponse
|
||||
}
|
||||
|
||||
|
||||
// Get type and slug from the request path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue