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
It gives me an error (json.filter is not a function) because / are not supported apparently - I could not find where is the matching made in the source code
The only workaround I found is to use GET params in the URL to pass the ID and the language, so my urls are all messed up with GET for on-demand pages and a normal path for the other ones 😬
Any suggestions? I can change the data structure as it comes from directus.io headless CMS
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello dear community
I need some paginated pages to be rendered on demand with custom permalinks.
The initial data I have is this:
The permalink should has to be
/en/test1/
for the 1st elementI can't find a way to do that, despite changing the data structure as explained bellow
What I tried #1
In
_data/d.json
In
page.md
It gives me an error (json.filter is not a function) because
/
are not supported apparently - I could not find where is the matching made in the source codeWhat I tried #2
In
_data/d.json
In
page.md
This will not let me choose
id
andlang
from inside the object, this will match both/en/test1/
and/fr/test1
to the same object with keytest1
:(What I tried #3
The only workaround I found is to use GET params in the URL to pass the ID and the language, so my urls are all messed up with GET for on-demand pages and a normal path for the other ones 😬
Any suggestions? I can change the data structure as it comes from directus.io headless CMS
Beta Was this translation helpful? Give feedback.
All reactions