Currently, in the book page, we are manually checking for a : and splitting, rendering different versions of the page. If we split the route into two: /[book] and /[book]:[bookHadith], it would vastly simplify the pages, in addition to allowing for easier implementation of <title> tags, OpenGraph embeds, etc.
Currently, in the book page, we are manually checking for a
:
and splitting, rendering different versions of the page. If we split the route into two:/[book]
and/[book]:[bookHadith]
, it would vastly simplify the pages, in addition to allowing for easier implementation of<title>
tags, OpenGraph embeds, etc.