Skip to content

Commit

Permalink
ICO-245 Fix homepage loading
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiulazar committed Feb 25, 2025
1 parent 5d4bf2a commit 26d1cb0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pages/[...all].vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ const { t } = useI18n();
const { $i18n } = useNuxtApp();
const { locale } = useI18n();
const defaultLocale = $i18n.defaultLocale;
const routePath =
let routePath =
locale.value !== defaultLocale
? route.path.replace(/^\/[^/]+/, '')
? route.path.replace(/^\/[^\/]+/, '')
: route.path;
if (routePath === '') {
routePath = '/';
}
const { data: seoResult } = await useAsyncData(`seoPath${routePath}`, async () => {
// For client links if the history state contains seo url information we can omit the api call
if (import.meta.client) {
Expand Down

0 comments on commit 26d1cb0

Please sign in to comment.