5.0 KiB
Contact Details Update & Bug Fix Summary
Project: workroot-website Date: 2026-03-21 Prepared by: documentation-writer agent
1. Contact Information Update
The following contact details were updated across the entire codebase:
| Field | Updated Value |
|---|---|
| Address | At Post Rajapur Shantinagar, Taluka Khatav, Dist Satara, MH 415503 |
| Phone | +91-9561417403 |
| admin@workroot.in |
Files Updated
| File | What Changed |
|---|---|
src/layouts/BaseLayout.astro |
Organization schema — address, phone, email |
src/pages/contact.astro |
Display contact details + LocalBusiness schema |
src/pages/about.astro |
Contact references in structured data |
src/pages/index.astro |
Open Graph / meta references |
src/components/SEO.astro |
Canonical URL and OG tags |
Email Domain Migration Note
All pages previously used .io email variants (hello@workroot.io, sales@workroot.io).
These were migrated to admin@workroot.in to match the primary domain workroot.in.
2. Bug Fixes Applied
Bug 1 — Blog Page Theme Styling
Problem: Blog page content did not apply dark/light theme correctly; text remained unstyled on theme toggle.
Fix: Updated src/pages/blog/index.astro and src/pages/blog/[...slug].astro with correct Tailwind dark-mode class variants.
Impact: Both blog listing and individual blog post pages now theme correctly.
Bug 2 — Header Text Color in Dark Mode
Problem: Navigation/header text remained black when switching to dark mode.
Fix: Updated src/components/Header.astro — added dark:text-white / dark:text-gray-100 classes to nav links and logo text.
Impact: Header is now fully theme-aware across all pages.
Bug 3 — Read Blog 500 Error
Problem: Visiting individual blog post URLs returned a 500 Internal Server Error.
Root cause: SSR rendering issue in the dynamic [...slug].astro route — content collection query failed under certain slug patterns.
Fix: Corrected content collection query and added proper error handling in src/pages/blog/[...slug].astro.
Impact: All blog post pages now render correctly.
Bug 4 — CORS Issues for Newsletter and Contact Forms
Problem: Newsletter subscription and Contact Us form submissions failed with CORS errors in cross-origin scenarios.
Fix: Updated src/middleware.ts to add proper CORS headers for API routes. Updated src/pages/api/contact.ts and src/pages/api/newsletter.ts.
Impact: Forms now work correctly from all allowed origins.
Bug 5 — Duplicate Footer
Problem: Some pages rendered two footer instances.
Fix: Removed duplicate <Footer /> component import/usage from affected page layouts.
Impact: All pages now render exactly one footer.
3. Google Maps Embed Update
The Contact page previously displayed a static SVG map placeholder.
Change: Replaced the placeholder with a live Google Maps <iframe> embed.
File: src/pages/contact.astro
CSP Update: src/middleware.ts was updated to allow maps.google.com in frame-src of the Content Security Policy.
4. SEO & Structured Data Updates
BaseLayout.astroOrganization schema updated with new address, phone, email.- Contact page now includes full
LocalBusinessschema with complete contact details. - All pages verified to use consistent
workroot.indomain in canonical URLs and Open Graph tags.
5. Security Audit (Form Endpoints)
Following the CORS fix, a security audit was conducted on the Newsletter and Contact form API endpoints.
Endpoints audited:
POST /api/contactPOST /api/newsletter
Findings: No critical vulnerabilities found. CORS, input validation, and rate-limiting patterns are in place per audit report in .agents/security-auditor/.
6. Deployment Notes
Environment Variables Required
# Email
SMTP_HOST=<your-smtp-host>
SMTP_PORT=587
SMTP_USER=<your-smtp-user>
SMTP_PASS=<your-smtp-password>
CONTACT_EMAIL=admin@workroot.in
# Analytics (optional)
GOOGLE_ANALYTICS_ID=<your-ga4-id>
# Site
PUBLIC_SITE_URL=https://workroot.in
NODE_ENV=production
Build & Start Commands
# Install dependencies
npm install
# Build for production
npm run build
# Start production server
npm run start:prod
Test Commands
# Run all tests
npm test
# Smoke tests only (fast CI check)
npm run test:smoke
# Cross-browser tests
npm run test:chromium
npm run test:firefox
npm run test:webkit
7. Related Agent Reports
| Agent | Report Location |
|---|---|
| SEO Specialist | .agents/seo-specialist/THEME_SEO_UPDATE.md |
| Performance Optimizer | .agents/performance-optimizer/POST_FIX_PERFORMANCE_REPORT.md |
| QA Automation Engineer | .agents/qa-automation-engineer/BUG_FIX_TEST_REPORT.md |
| Security Auditor | .agents/security-auditor/ |
| Frontend Specialist | .agents/frontend-specialist/THEME_SYSTEM_ARCHITECTURE.md |
| Test Engineer | .agents/test-engineer/THEME_TESTING_REPORT.md |