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:
Ehsan
2025-09-14 05:05:08 +03:30
parent f0e8a753c3
commit 153cb5bc9f
3 changed files with 11 additions and 9 deletions
+3
View File
@@ -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`, {