Catch redirects for /app/

This commit is contained in:
Sam Carlton 2022-05-04 19:09:06 -05:00
parent 91c250f462
commit ea52e7051e

View file

@ -4,16 +4,19 @@
import axios from 'axios' import axios from 'axios'
import { catchRedirectResponse } from '~/helpers/astro/request.js'
import { ListingDetails } from '~/helpers/listing-page.js' import { ListingDetails } from '~/helpers/listing-page.js'
import { getPathPartsFromAstroRequest } from '~/helpers/url.js' import { getPathPartsFromAstroRequest } from '~/helpers/url.js'
import Layout from '../../layouts/default.astro' import Layout from '../../layouts/default.astro'
import Listing from '../../components/default-listing.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 // Get type and slug from the request path