diff --git a/client/components/app/LazyBookshelf.vue b/client/components/app/LazyBookshelf.vue index 112efef7..3f8f7d71 100644 --- a/client/components/app/LazyBookshelf.vue +++ b/client/components/app/LazyBookshelf.vue @@ -43,7 +43,6 @@ export default { mixins: [bookshelfCardsHelpers], data() { return { - routeName: null, routeFullPath: null, initialized: false, bookshelfHeight: 0, @@ -632,7 +631,6 @@ export default { mounted() { this.initListeners() - this.routeName = this.$route.name // beforeDestroy will have the new route name already, so need to store this this.routeFullPath = window.location.pathname + (window.location.search || '') }, updated() { diff --git a/server/utils/scandir.js b/server/utils/scandir.js index 9d52227a..699a47b9 100644 --- a/server/utils/scandir.js +++ b/server/utils/scandir.js @@ -260,6 +260,10 @@ function getBookDataFromDir(folderPath, relPath, parseSubtitle = false) { title = title.replace(replaceChunk, '').trim() } } + + if (volumeNumber != null && !isNaN(volumeNumber)) { + volumeNumber = String(Number(volumeNumber)) // Strips leading zeros + } } var publishedYear = null