I have a problem with setting up dynamic pages. So I am doing this website with an article overview. These articles are fetched from an Wordpress API. This is working. Also fetching a single article. So I got a list of articles in my overview. Clicking on this article brings me to my dynamic page and this is working fine. BUT when i copy the URL of the article and want to open it somewhere else it just shows me a 404 error.
So, just to make sure I understand you, your dynamic page isn’t fetching the article data based on the slug when accessed directly. It only works if you navigate from the article list, right?
I believe you are skipping a step regarding fetching your collection.
Try this:
Add a “Fetch Collection” workflow on your dynamic page, triggered On Page Load, using the slug from the URL.
Make sure your bindings use the slug to fetch the right article.
thanks for your reply. I do that. But my guess is, that the URL is seen as URL and not an URL with a slug.
In the screenshot before you see my getOrganisationsBySlug functionality and I call there the page parameter “slug” for my API call. So I guess this parameter is empty.