If I select *, all article objects from the table are pulled correctly. So the connection works. But this query pulls all articles, while I only need the one for the current slug.
If I filter hard-coded for one article (e.g. an article with the slug “first-article”) the API connection works and the current article data is pulled.
But I want to filter for the row corresponding with my current slug.
In the network view I see that the parameter is not populated but still sent off as a parameter to Supabase. It stays $ctx.params.slug or ${ctx.params.slug}. See screenshot.
How can I set things up, so the slug of my current page is sent off to Supabase?
Set the URL as a dynamic value then update to this and you should be on your way. The URL added from the left panel in the UI is entered as a string. This will evaluate the variable and concatenate to your base url string.
Thanks, you’ve saved my day with your help! - Your approach worked.
Just for further reference, if anybody runs into the same problem:
For me, putting the enhanced URL (with hyphens) into the code editor that opens up when clicking the binding bolt did not work. Somehow the editor messed up and delivered a syntax error. But this could be entirely my fault or system setup.
But what DID work for me was
Just choosing the dynamic field from the data picker first:
Then adding the static URL directly in the URL field before the dynamic field: