Kycklingar / PBooru

The Unlicense
46 stars 1 forks source link

Chapters of the same order #87

Open Doggermelon opened 1 year ago

Doggermelon commented 1 year ago

The order of a chapter in a comic doesn't currently need to be unique (two or more chapters can be "Chapter 1"), but only one chapter is accessible to view as every chapter links to /comics/<comic-id>/<chapter-order>. The hidden chapters still show up in the chapter list, on their posts' pages, and they're given unique chapter IDs.

Having multiple chapters share an order is useful as it allows alternative chapters to exist in chronological order along side the original ones, so removing that ability wouldn't be great. I'd suggest adding the chapter's place in the order (based off its chapter ID, so no db changes needed) on to the end of the current URL (/comics/<comic-id>/<chapter-order>/<chapter-suborder> to disambiguate between them while keeping the current behavior of /comics/<comic-id>/<chapter-order> pointing to the first one. This keeps the URL iterable for the majority of situations and doesn't change the links of existing chapters.