[RFC] Standardize urls for components
It would make sense for components to default to using fragment
and collection
when using the url.
Case in point, Editoria
and Xpub
both use Wax
.
Wax's pubsweet integration in its code, looks for the url's bookId
, as it was built initially for books.
Now xpub, in order to use that component, has to use a router along the lines of /my-route/journal/:bookId
, which makes no sense. And the only way to bypass this, is to reimplement this piece of code, duplicating work.
Of course, anyone who wants to bypass this is welcome to, but what I'm proposing is for all components that have anything in their code concerning reading url
s, to use fragmentId
and collectionId
, so that they can truly just be put into a router config and work.