aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-03-03 15:52:57 -0800
committerMario Vavti <mario@mariovavti.com>2018-03-04 09:49:13 +0100
commit5d18996362bf51d38cea6d14f348064333153b27 (patch)
tree0fb764e5257871269ddc1b31c394d51331aa068c
parentad3f61a215dcf544557af5a02e2148f4f37ae444 (diff)
downloadvolse-hubzilla-5d18996362bf51d38cea6d14f348064333153b27.tar.gz
volse-hubzilla-5d18996362bf51d38cea6d14f348064333153b27.tar.bz2
volse-hubzilla-5d18996362bf51d38cea6d14f348064333153b27.zip
add dummy f= arg to suggestion urls, use directory version of suggest for newmember link instead of the suggest module as the UI is prettier.
-rw-r--r--Zotlabs/Module/Directory.php2
-rw-r--r--Zotlabs/Widget/Newmember.php6
-rwxr-xr-xview/tpl/peoplefind.tpl2
3 files changed, 5 insertions, 5 deletions
diff --git a/Zotlabs/Module/Directory.php b/Zotlabs/Module/Directory.php
index b1552a694..85c0be6b6 100644
--- a/Zotlabs/Module/Directory.php
+++ b/Zotlabs/Module/Directory.php
@@ -17,7 +17,7 @@ class Directory extends \Zotlabs\Web\Controller {
intval(local_channel()),
dbesc($_GET['ignore'])
);
- goaway(z_root() . '/directory?suggest=1');
+ goaway(z_root() . '/directory?f=&suggest=1');
}
$observer = get_observer_hash();
diff --git a/Zotlabs/Widget/Newmember.php b/Zotlabs/Widget/Newmember.php
index 0279f339f..cdb70e23d 100644
--- a/Zotlabs/Widget/Newmember.php
+++ b/Zotlabs/Widget/Newmember.php
@@ -39,9 +39,9 @@ class Newmember {
t('Find and Connect with others'),
[
- 'directory' => t('View the directory'),
- 'suggest' => t('View friend suggestions'),
- 'connections' => t('Manage your connections'),
+ 'directory' => t('View the directory'),
+ 'directory?f=&suggest=1' => t('View friend suggestions'),
+ 'connections' => t('Manage your connections'),
],
t('Communicate'),
diff --git a/view/tpl/peoplefind.tpl b/view/tpl/peoplefind.tpl
index 5f420f6d0..b4d9ef19f 100755
--- a/view/tpl/peoplefind.tpl
+++ b/view/tpl/peoplefind.tpl
@@ -10,7 +10,7 @@
</form>
<ul class="nav nav-pills flex-column">
{{if $similar}}<li class="nav-item"><a class="nav-link" href="match" >{{$similar}}</a></li>{{/if}}
- {{if $loggedin}}<li class="nav-item"><a class="nav-link" href="directory?suggest=1" >{{$suggest}}</a></li>{{/if}}
+ {{if $loggedin}}<li class="nav-item"><a class="nav-link" href="directory?f=&suggest=1" >{{$suggest}}</a></li>{{/if}}
<li class="nav-item"><a class="nav-link" href="randprof" >{{$random}}</a></li>
{{if $loggedin}}{{if $inv}}<li class="nav-item"><a class="nav-link" href="invite" >{{$inv}}</a></li>{{/if}}{{/if}}
</ul>