I am using an SPA page setup with routing and have it working as intended with the dynamic URL parameter.
As part of my SPA, I utilize an API to retrieve information.
The issue I am having is how to tell the API to “get” the route URL Parameter and use it to retrieve specific information.
I set the Server Action > Globals ? $_GET variable as I normally would. In this case, batchid.
I added the variable to the API.
"batchId": "{{$_GET.batchid}}",
The error being displayed from the API is that the datatype is not a numericString. The value is stored in the mysql database as an INT.
Using the non-route way works as intended and returns results.
So I am not clear why it works without routing, but does not work with routing.