diff --git a/lib/Controller/ApiBase.php b/lib/Controller/ApiBase.php index 7a882d30..19d92633 100644 --- a/lib/Controller/ApiBase.php +++ b/lib/Controller/ApiBase.php @@ -187,7 +187,7 @@ class ApiBase extends Controller protected function isRecursive() { - return null === $this->request->getParam('folder'); + return null === $this->request->getParam('folder') || "1" === $this->request->getParam('recursive'); } protected function isArchive() diff --git a/src/components/Timeline.vue b/src/components/Timeline.vue index b5c79554..0ad6e269 100644 --- a/src/components/Timeline.vue +++ b/src/components/Timeline.vue @@ -240,7 +240,7 @@ export default class Timeline extends Mixins(GlobalMixin, UserConfig) { @Watch("$route") async routeChange(to: any, from?: any) { - if (from?.path !== to.path) { + if (from?.path !== to.path || from.query.recursive !== to.query.recursive) { await this.refresh(); } @@ -565,6 +565,9 @@ export default class Timeline extends Mixins(GlobalMixin, UserConfig) { // Folder if (this.$route.name === "folders") { query.set("folder", utils.getFolderRoutePath(this.config_foldersPath)); + if(this.$route.query.recursive === "1") { + query.set("recursive", "1"); + } } // Archive diff --git a/src/components/top-matter/FolderTopMatter.vue b/src/components/top-matter/FolderTopMatter.vue index aa2ef1d0..aeab4a66 100644 --- a/src/components/top-matter/FolderTopMatter.vue +++ b/src/components/top-matter/FolderTopMatter.vue @@ -15,7 +15,17 @@