aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-12-14 21:48:30 +0100
committerMario Vavti <mario@mariovavti.com>2017-12-14 21:49:03 +0100
commit48be6ad5c4911286e10895a85a405b81f36b222b (patch)
tree2474d4fb05bef28e9f467eb25015b80813395bc8 /include/nav.php
parentfbc2bb02b4cd579c73109cfe74f441873d0fe82e (diff)
downloadvolse-hubzilla-48be6ad5c4911286e10895a85a405b81f36b222b.tar.gz
volse-hubzilla-48be6ad5c4911286e10895a85a405b81f36b222b.tar.bz2
volse-hubzilla-48be6ad5c4911286e10895a85a405b81f36b222b.zip
make remote homelink link to the home host and not to the home channel
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/nav.php b/include/nav.php
index 2366fe7f1..8566cc58c 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -176,13 +176,15 @@ EOT;
}
-
- $homelink = get_my_url();
- if(! $homelink) {
+ $my_url = get_my_url();
+ if(! $my_url) {
$observer = App::get_observer();
- $homelink = (($observer) ? $observer['xchan_url'] : '');
+ $my_url = (($observer) ? $observer['xchan_url'] : '');
}
+ $homelink_arr = parse_url($my_url);
+ $homelink = $homelink_arr['scheme'] . '://' . $homelink_arr['host'];
+
if(! $is_owner) {
$nav['rusermenu'] = array(
$homelink,