fix: ensure all links are properly localized with locale prefix

- Update basePath to always include locale prefix (/)
- Fix productsHref to use basePath consistently
- Fix product links in ProductsGrid to use basePath
- Ensure /sr/pages link to /sr/products, /en to /en/products, etc.
This commit is contained in:
Unchained
2026-04-09 10:03:26 +02:00
parent 9ab07ab01d
commit 04d8d773bf
3 changed files with 8 additions and 6 deletions

View File

@@ -88,7 +88,7 @@ export default async function SolutionPage({ params }: PageProps) {
// Filter out bundle products (2x, 3x versions) - only show original 4 products
const products = filterOutBundles(allProducts).slice(0, 4);
const basePath = validLocale === DEFAULT_LOCALE ? "" : `/${validLocale}`;
const basePath = `/${validLocale}`;
const faqQuestions = page.faqs.map((faq) => ({
question: getLocalizedString(faq.question, validLocale),