+
+ /**
+ * With the Slim routing system, default header link should be `./` instead of `?`.
+ * Otherwise you can not go back to the home page. Example: `/picture-wall` -> `/picture-wall?` instead of `/`.
+ */
+ public function updateMethodRelativeHomeLink(): bool
+ {
+ $link = trim($this->conf->get('general.header_link'));
+ if ($link[0] === '?') {
+ $link = './'. ltrim($link, '?');
+
+ $this->conf->set('general.header_link', $link, true, true);
+ }
+
+ return true;
+ }