feat: implement root domain handling for nobat724.com to prevent city filtering
This commit is contained in:
@@ -20,13 +20,13 @@ export async function generateMetadata() {
|
||||
}
|
||||
|
||||
async function Specialties() {
|
||||
const { matchedCity, matchedState } = await getStateInfo();
|
||||
const { matchedCity, matchedState, isRoot } = await getStateInfo();
|
||||
return (
|
||||
<Layout name="/specialties">
|
||||
<SpecialtiesPage
|
||||
cityId={matchedCity?.id ?? null}
|
||||
cityName={matchedCity?.name ?? null}
|
||||
stateName={matchedState?.name ?? null}
|
||||
cityId={isRoot ? null : (matchedCity?.id ?? null)}
|
||||
cityName={isRoot ? null : (matchedCity?.name ?? null)}
|
||||
stateName={isRoot ? null : (matchedState?.name ?? null)}
|
||||
/>
|
||||
</Layout>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user