Skip to content

Commit

Permalink
feat: groups placeholder
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Stückler <[email protected]>
  • Loading branch information
pReya committed Nov 7, 2023
1 parent 33d3804 commit 5eee319
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/SitesManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ public function getSitesToDisplay() {
}

$site['url'] = str_replace(
['{email}', '{uid}', '{displayname}', '{jwt}'],
array_map('rawurlencode', [$email, $uid, $displayName, $jwt]),
['{email}', '{uid}', '{displayname}', '{jwt}', '{groups}'],
array_map('rawurlencode', [$email, $uid, $displayName, $jwt, implode(",", $groups)]),
$site['url']
);

Expand Down
2 changes: 1 addition & 1 deletion templates/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<div class="section">
<h2><?php p($l->t('External sites'));?></h2>
<p class="settings-hint"><?php p($l->t('Add a website directly to the app list in the top bar. This will be visible for all users and is useful to quickly reach other internally used web apps or important sites.')); ?></p>
<p class="settings-hint"><?php p($l->t('The placeholders {email}, {uid} and {displayname} can be used and are filled with the user´s values to customize the links.')); ?></p>
<p class="settings-hint"><?php p($l->t('The placeholders {email}, {uid}, {displayname} and {groups} can be used and are filled with the user´s values to customize the links.')); ?></p>
<p class="settings-hint"><?php p($l->t("When accessing the external site through the Nextcloud link, path parameters will be forwarded to the external site. So you can also create deep links (e.g. 'mycloud.com/external/1/pageA' will lead to Nextcloud with the iframe pointed at 'externalsite.com/pageA').")); ?></p>
<p class="settings-hint"><?php print_unescaped(str_replace(
['{linkstart}', '{linkend}'],
Expand Down

0 comments on commit 5eee319

Please sign in to comment.