aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-07-23 12:24:42 +0200
committerHarald Eilertsen <haraldei@anduin.net>2024-07-23 12:24:42 +0200
commit7afb01e4889761f4b420b37d626a8c96f41434fa (patch)
tree8a620956e3a1904dd4f8bafd1d15b8b997a35f87 /Zotlabs
parent3708896a658bb7ae8f61377bc85da0bc898a721e (diff)
downloadvolse-hubzilla-7afb01e4889761f4b420b37d626a8c96f41434fa.tar.gz
volse-hubzilla-7afb01e4889761f4b420b37d626a8c96f41434fa.tar.bz2
volse-hubzilla-7afb01e4889761f4b420b37d626a8c96f41434fa.zip
Redirect help to about page when locale but no topic specified in URL
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Help.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Module/Help.php b/Zotlabs/Module/Help.php
index fd5cacee6..4adf95692 100644
--- a/Zotlabs/Module/Help.php
+++ b/Zotlabs/Module/Help.php
@@ -6,6 +6,7 @@ use Michelf\MarkdownExtra;
/**
* You can create local site resources in doc/Site.md and either link to doc/Home.md for the standard resources
* or use our include mechanism to include it on your local page.
+ *
*@code
* #include doc/Home.md;
*@endcode
@@ -160,6 +161,10 @@ class Help extends \Zotlabs\Web\Controller {
array_shift($args);
}
+ if (empty($args)) {
+ goaway("/help/{$this->lang['language']}/about/about");
+ }
+
// Keep the first remaining arg as the heading slug
$this->heading_slug = $args[0];