You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only in markdown frontmatter can you set the path directly. Paths are derived from the filenames by default which is why you're seeing /foo/bar/. You'll want to use the rewritePath API to set the path. This isn't documented atm but you can see an example on my blog https://github.com/KyleAMathews/blog/blob/master/gatsby-node.js#L3
It should be pretty straightforward, just look for a path key on your json files and return that.
How I can set absolute paths?
I have this page:
With this data:
It resolve as
mydomain.com/foo/bar
, but I wantmydomain.com/bar
It's possible?
Post scriptum:
I can't put the json in
pages/bar.json
because these files (hundreds) are generated by a script.The text was updated successfully, but these errors were encountered: