In a website I’m working on I collect all the content (articles) in the page ‘home’.
In order to have cleaner URLs I’m Removing the parent page slug from the URL.
Since some of this content is passed to Three.js, I have a home.json.php & article.json.php, which are not accessible anymore after I applied the route.
I really don’t understand why and how to make the json files accessible again…
Anyone could explain me what is the problem and how to solve it?
I’m using Kirby 3.7.3, the website is only in one language.
Using your last piece of code I’m able to load website.test/home.json, but when trying to load the json of a page, for example website.test/article.json, it returns the error page. While the page itself is loading correctly.
Do you think I should solve this with a regex pattern, or it’s something else?