Skip to content

REST Queries for localised fields (NextJS staticPaths & staticProps) #362

Discussion options

You must be logged in to vote

I believe I have solved it myself. See below.
Was pretty sure I double checked this like 10 times before submitting this, guess not 😩

http://localhost:3001/api/pages?where[slug][equals]=home <-- works
http://localhost:3001/api/pages?where[slug][equals]=hem <-- doesn't work
http://localhost:3001/api/pages?where[slug][equals]=hem&locale=sv <-- works

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@DanRibbens
Comment options

@fredrikgunnarsson
Comment options

Answer selected by fredrikgunnarsson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants