feat: add canonical URL handling and entity quality checks

- Implemented canonical URL strategies for city-specific domains and entities.
- Added helper functions for domain and city resolution.
- Created tests for canonical URL generation and domain resolution.
- Introduced entity quality checks for doctors and clinics to ensure meaningful content.
- Developed unique introductory texts for listing pages to avoid duplicate content.
- Established robots.txt policies for listing pages to manage indexing based on user filters.
- Enhanced specialty content with dynamic introductions and FAQs to improve SEO.
This commit is contained in:
hamed
2026-07-19 07:52:50 +03:30
parent 36816eded2
commit fd48b48613
48 changed files with 3951 additions and 733 deletions
+2
View File
@@ -5,6 +5,8 @@ export function proxy(request) {
// Add pathname to headers so we can access it in getCanonicalUrl
response.headers.set('x-pathname', request.nextUrl.pathname);
// canonical صفحات لیست به pagination وابسته است، ولی layout به searchParams دسترسی ندارد
response.headers.set('x-search', request.nextUrl.search || '');
return response;
}