Hi,
I have created and published a page with this structure mydomain.com/{slug}
I have published it, extract the slug from URL with the predefine variable on page load and fetch the endpoint with it. I have a 404 error my page doesn’t show up. what’s wrong?
Where is the data stored? In a dynamic collection or static?
If you’re using a slug and dynamic data, you have to make sure the API is getting the ID of the record you are fetching. Either by passing it in on the frontend to the GET. Or querying it on the backend by slug.
If you’re using a slug and static data, you can just filter the collection on the slug, provided that the slug is in the collection.
It is easier to help if you post some video or screenshots, as there could be many reasons why your page is 404.
It may not be possible to have a page with only a variable, without any prefix, could you try again by adding something before the variable, like /sports/martiallink ? If it works then we should rework the UI to prevent you to do it, or make it works
You can create a bug ticket, we will either make it not possible anymore and create a product ticket internally, or make it possible if we figure out we can easily
Hey @Alexis I hope you had a great weekend, I can see that this ticket is under dev. Do you know if it would be achievable? (if so, when more or less?, I need it to launch)
What was fixed? I thought the problem was url path variables don’t work without a prefix (e.g. mydomain.com/{slug} wouldn’t work) - and from what I can tell that is still broken. @Alexis can you confirm the scope/status of this (or link the bug ticket)