Fix Book URL to be consistent and update the history of the user
Expected behaviour
The urls for a book needs to have a consistent structure like this : /organizations/:organizationId/bookmanager/:bookId
.
Current behaviour
When a user access a book through a collection that belongs to, the page takes a url with that structure : /organizations/:organizationId/collections/:collectionId/bookmanager/:bookId
But if the user navigates from the dashboard to the book straight a way , then the url will has that structure: /organizations/:organizationId/bookmanager/:bookId
.
Possible solution
We need to have a consistent way of accessing a book, and for the back buttons we can rely on a history array saved on the localstorage of the user, in that way we can show the previous page that this user was .