Hey Sam,
Thanks for taking the time to get back to me and your useful info on lang code, I'll give it a try shortly.
I resolved my /gym query with something like this:
I create a field in the page for 'slug' and use this to return the correct content.
In the parent page I have a group of fields for content relation to create my fetchLinks.
const relatedPagesFromClub = await $prismic.api.getByUID('club', params.club,
{
fetchLinks: 'club_menu',
lang: store.state.lang
}
)
const correctPage = relatedPagesFromClub.data.club_menu.find(Page => params.uid === Page.link.slug)
const result = await $prismic.api.query($prismic.predicates.at('document.id', correctPage.link.id,
{
lang: store.state.lang
}
))
'result' always returns an array of objects (always one) compared to a single object when querying a UID. But this seems fine and everything is working well.
Thanks again
Jake