Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:dpc-sdp/ripple-framework into fe…
Browse files Browse the repository at this point in the history
…ature/search-fixes
  • Loading branch information
dylankelly committed Aug 4, 2023
2 parents 8e4ab08 + da021c8 commit a5098ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/nuxt-ripple/composables/use-tide-language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export default (page: any) => {
meta.tag === 'meta' && meta.attributes?.property === 'og:locale'
)

return lang?.attributes?.content?.toLowerCase() || page.meta?.langcode
return (
lang?.attributes?.content?.toLowerCase() || page?.meta?.langcode || 'en'
)
})

const found = computed(() => languages?.[locale.value] || null)
Expand Down
2 changes: 1 addition & 1 deletion packages/ripple-tide-search/pages/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const searchDriverOptions = {
filters: [
{
field: 'field_node_site',
values: runtimeConfig.public.tide?.site
values: [runtimeConfig.public.tide?.site]
},
{
field: 'type',
Expand Down

0 comments on commit a5098ff

Please sign in to comment.