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
I think I don't really understand why the managed pages are exclude.
Seems not currently possible to edit managed pages. That check is preventing this issue: #11 (comment) where template pages stop working.
Still waiting for gridsome/gridsome#1139 that will should add a more stable API to edit pages without the need to recreating it. Currently I have to specifically ignore that type of page in order to make the others work too.
It seems even the pageContext hook is correctly called, the one responsible for the default value of the context.
Ok so if i understand the condition to exclude it's for page generate by source plugin like source-filesystem works ?
Hum in fact i don't really understand what variable are used for graphql, but my filter works on urls "/fr/" and "/en/" but in "/" the query return all data without filtering.
In doubt I have try to remove condition options.internal.isManaged === false and it's work in my case.
For those who needs a workaround, you can use a default value for your $locale in the GraphQL query. Replace the <DEFAULT_VALUE> below with your default locale, like "en":
By the way, after triggering the hot reloading several times (for example, by saving a document in the text editor), the problem unexpectedly disappears and my filtering starts working as it should. If you're unable reproduce, I have a screen recording to show this. (I am using the source-filesystem plugin for my markdown posts and have an index page to filter my posts by the locale).
Last but not least, I can see the "locale" set correctly in the Vue tab all the time. But my graphql query doesn't seem get it correctly. I am new to Gridsome so I may be wrong at some points.
Describe the bug
All default page of gridsome (create by gridsome before the plugin) not receive context locale in route
To Reproduce
Steps to reproduce the behavior:
Expected behavior
For example in my index page I want make this query
but with
rewriteDefaultLanguage: false
for the urls like / $locale is emptybecause gridsome create an managed page and it's exclude in plugin
gridsome-plugin-i18n/gridsome.server.js
Line 122 in 75bb0ff
I think I don't really understand why the managed pages are exclude.
Environment (please complete the following information):
Plugin configuration
The text was updated successfully, but these errors were encountered: