Dwindi Ramadhana
45fcbf9d29
feat: migrate from HashRouter to BrowserRouter for SEO
Phase 1: WordPress Rewrite Rules
- Add rewrite rule for /store/* to serve SPA page
- Add use_browser_router setting toggle (default: true)
- Flush rewrite rules on settings change
Phase 2: React Router Migration
- Add BrowserRouter with basename from WordPress config
- Pass basePath and useBrowserRouter to frontend
- Conditional router based on setting
Phase 3: Hash Route Migration
- Update EmailManager.php reset password URL
- Update EmailRenderer.php login URL
- Update TemplateOverride.php WC redirects
- All routes now use path format by default
This enables proper SEO indexing as search engines
can now crawl individual product/page URLs.
2026-01-03 20:01:32 +07:00
..
2025-12-31 14:06:04 +07:00
2026-01-03 16:59:05 +07:00
2025-12-31 22:29:59 +07:00
2026-01-03 20:01:32 +07:00
2026-01-01 20:54:27 +07:00
2026-01-03 20:01:32 +07:00
2025-12-31 21:17:59 +07:00
2025-11-10 23:18:56 +07:00