fix bug modal search location in home && send request after click on continue for update list clinics && change style on hover text of specialties and service in clinics page && add loading for list of clinics && fix bug page doctor item && link footer to clinic-pro
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ export default function robots() {
|
|||||||
rules: {
|
rules: {
|
||||||
userAgent: '*',
|
userAgent: '*',
|
||||||
allow: '/',
|
allow: '/',
|
||||||
disallow: '/admin',
|
disallow: '/dashboard',
|
||||||
},
|
},
|
||||||
sitemap: `${baseUrl}/sitemap.xml`,
|
sitemap: `${baseUrl}/sitemap.xml`,
|
||||||
};
|
};
|
||||||
|
|||||||
+6
-132
@@ -84,146 +84,20 @@ function getStaticPages(baseUrl) {
|
|||||||
|
|
||||||
// Generate doctor search URLs based on domain
|
// Generate doctor search URLs based on domain
|
||||||
function getDoctorSearchUrls(domain, baseUrl) {
|
function getDoctorSearchUrls(domain, baseUrl) {
|
||||||
const urls = [];
|
// Return empty array - no URLs with search parameters
|
||||||
|
return [];
|
||||||
if (isMainDomain(domain)) {
|
|
||||||
// For main domain, include all cities and limited specialties
|
|
||||||
cityData.forEach(city => {
|
|
||||||
const stateName = getStateById(city.province_id);
|
|
||||||
if (stateName) {
|
|
||||||
// City-only search
|
|
||||||
const cityUrl = createSitemapUrl(baseUrl, '/doctors', {
|
|
||||||
city: city.name,
|
|
||||||
state: stateName
|
|
||||||
});
|
|
||||||
urls.push(createSitemapEntry(cityUrl, 0.8));
|
|
||||||
|
|
||||||
// City + specialty combinations (limited to prevent too many URLs)
|
|
||||||
const limitedSpecialties = limitArray(specialtyData, DOMAIN_CONFIG.MAX_SPECIALTY_COMBINATIONS);
|
|
||||||
limitedSpecialties.forEach(specialty => {
|
|
||||||
const specialtyUrl = createSitemapUrl(baseUrl, '/doctors', {
|
|
||||||
specialty: specialty.name,
|
|
||||||
city: city.name,
|
|
||||||
state: stateName
|
|
||||||
});
|
|
||||||
urls.push(createSitemapEntry(specialtyUrl, 0.7));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Specialty-only searches
|
|
||||||
specialtyData.forEach(specialty => {
|
|
||||||
const specialtyUrl = createSitemapUrl(baseUrl, '/doctors', {
|
|
||||||
specialty: specialty.name
|
|
||||||
});
|
|
||||||
urls.push(createSitemapEntry(specialtyUrl, 0.8));
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// For city-specific domains, only include that city's data
|
|
||||||
const currentCity = getCityByDomain(domain);
|
|
||||||
if (currentCity) {
|
|
||||||
const stateName = getStateById(currentCity.province_id);
|
|
||||||
if (stateName) {
|
|
||||||
// City-only search
|
|
||||||
const cityUrl = createSitemapUrl(baseUrl, '/doctors', {
|
|
||||||
city: currentCity.name,
|
|
||||||
state: stateName
|
|
||||||
});
|
|
||||||
urls.push(createSitemapEntry(cityUrl, 0.8));
|
|
||||||
|
|
||||||
// City + specialty combinations
|
|
||||||
specialtyData.forEach(specialty => {
|
|
||||||
const specialtyUrl = createSitemapUrl(baseUrl, '/doctors', {
|
|
||||||
specialty: specialty.name,
|
|
||||||
city: currentCity.name,
|
|
||||||
state: stateName
|
|
||||||
});
|
|
||||||
urls.push(createSitemapEntry(specialtyUrl, 0.7));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return urls;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate clinic search URLs
|
// Generate clinic search URLs
|
||||||
function getClinicSearchUrls(domain, baseUrl) {
|
function getClinicSearchUrls(domain, baseUrl) {
|
||||||
const urls = [];
|
// Return empty array - no URLs with search parameters
|
||||||
|
return [];
|
||||||
if (isMainDomain(domain)) {
|
|
||||||
// For main domain, include all cities
|
|
||||||
cityData.forEach(city => {
|
|
||||||
const stateName = getStateById(city.province_id);
|
|
||||||
if (stateName) {
|
|
||||||
const clinicUrl = createSitemapUrl(baseUrl, '/clinics', {
|
|
||||||
city: city.name,
|
|
||||||
state: stateName
|
|
||||||
});
|
|
||||||
urls.push(createSitemapEntry(clinicUrl, 0.8));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// For city-specific domains, only include that city
|
|
||||||
const currentCity = getCityByDomain(domain);
|
|
||||||
if (currentCity) {
|
|
||||||
const stateName = getStateById(currentCity.province_id);
|
|
||||||
if (stateName) {
|
|
||||||
const clinicUrl = createSitemapUrl(baseUrl, '/clinics', {
|
|
||||||
city: currentCity.name,
|
|
||||||
state: stateName
|
|
||||||
});
|
|
||||||
urls.push(createSitemapEntry(clinicUrl, 0.8));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return urls;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate specialty pages URLs
|
// Generate specialty pages URLs
|
||||||
function getSpecialtyUrls(domain, baseUrl) {
|
function getSpecialtyUrls(domain, baseUrl) {
|
||||||
const urls = [];
|
// Return empty array - no specialty URLs
|
||||||
|
return [];
|
||||||
if (isMainDomain(domain)) {
|
|
||||||
// For main domain, include all specialties with main cities only (to prevent too many URLs)
|
|
||||||
const mainCities = cityData.filter(city => DOMAIN_CONFIG.MAIN_CITIES.includes(city.id));
|
|
||||||
|
|
||||||
specialtyData.forEach(specialty => {
|
|
||||||
// Base specialty page
|
|
||||||
const specialtyUrl = createSitemapUrl(baseUrl, `/specialties/${encodeURIComponent(specialty.name)}`);
|
|
||||||
urls.push(createSitemapEntry(specialtyUrl, 0.8));
|
|
||||||
|
|
||||||
// Specialty + city combinations (only for main cities)
|
|
||||||
mainCities.forEach(city => {
|
|
||||||
const stateName = getStateById(city.province_id);
|
|
||||||
if (stateName) {
|
|
||||||
const citySpecialtyUrl = createSitemapUrl(baseUrl, `/specialties/${encodeURIComponent(specialty.name)}`, {
|
|
||||||
city: city.name,
|
|
||||||
state: stateName
|
|
||||||
});
|
|
||||||
urls.push(createSitemapEntry(citySpecialtyUrl, 0.7));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// For city-specific domains, include specialties with that city only
|
|
||||||
const currentCity = getCityByDomain(domain);
|
|
||||||
if (currentCity) {
|
|
||||||
const stateName = getStateById(currentCity.province_id);
|
|
||||||
if (stateName) {
|
|
||||||
specialtyData.forEach(specialty => {
|
|
||||||
const specialtyUrl = createSitemapUrl(baseUrl, `/specialties/${encodeURIComponent(specialty.name)}`, {
|
|
||||||
city: currentCity.name,
|
|
||||||
state: stateName
|
|
||||||
});
|
|
||||||
urls.push(createSitemapEntry(specialtyUrl, 0.7));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return urls;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default async function sitemap() {
|
export default async function sitemap() {
|
||||||
|
|||||||
Reference in New Issue
Block a user