I have page, from which I call two query. This two query need id.
How can I pass this id in the URL?
For example I call book and author query.
I pass them in URL,
Which option would be better? or is there another better way?
The first one should be readable.
But I prefer using slug. Example below.
Then in your back end, just remove
author- to get their slug.
This way you can reduce the number of parameters in the URL.