send city and state matched by domain in first request page /doctors, send data from field home page with key name, add link for name of doctor in /doctors page and active redirect linke to doctor item page
This commit is contained in:
@@ -10,6 +10,9 @@ async function Doctors({ searchParams }) {
|
||||
|
||||
let doctors = null;
|
||||
try {
|
||||
let newSearchParams = searchParams;
|
||||
if (matchedCity) newSearchParams.city = matchedCity.name;
|
||||
if (matchedState) newSearchParams.state = matchedState.name;
|
||||
const params = buildDoctorParams(searchParams);
|
||||
|
||||
const response = await axios.get(`${API_URL}/api/v1/doctors`, {
|
||||
|
||||
Reference in New Issue
Block a user