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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user