Fix Book URL to be consistent and update the history of the user
The urls for a book needs to have a consistent structure like this :
When a user access a book through a collection that belongs to, the page takes a url with that structure :
But if the user navigates from the dashboard to the book straight a way , then the url will has that structure:
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 .