[BUG] Custom menu name of an app is not respected #148
Labels
No labels
blocked
bug
duplicate
enhancement
FR accepted
help wanted
invalid
need discussion
next release
not reproduced
PR requested
question
reproduced
WFB
WIP
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deblan/side_menu#148
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue
Some apps like "Bigbluebotton Integration" allows to configure the menu name, so in the top menu of NC the configured name (in my case JayMeet) is used instead of the native app name. See https://github.com/sualko/cloud_bbb and search for "app.navigation.name".
Looks like this:
Unfortunately the Custom Menu app does not respect this:
Environment
Steps to reproduce
Install the Bigbluebutton Integration app and configure a custom menu name with the app.navigation.name parameter. Add the app to the top and the side menu.
Observed Results
In the top menu the configured menu name is correctly used. In the side menu this is ignored and the native app name is used.
Expected Results
The configured app name should be shown in the top- and the side menu.
Release in v3.2.0! 👍
Hi @debian,
It seems this bug is not really fixed. It is still present with "BBB" and "Announcement Center".
As far as i could see, AppRepository is in charge of overriding the name of the App:
But why ? This doesn't work, as getAppName re-take the name from config value, according to NextStandard, but... Take as default the translated name of the App, according to its ID.
public function getAppName($app): string
{
return $this->config->getAppValue(
'app.navigation.name',
$this->l10nFactory->get($app['id'])->t($app['name']),
$app['id']
);
}
This is not correct (for the default part), indeed, BBB as its own naming procedure (see
github.com/littleredbutton/cloud_bbb@c42e77d9b6/lib/AppInfo/Application.php (L84)) wich defines "BBB" as default.And AnnouncementCenter uses a dedicated appinfo/info.xml navigation entry point:
Announcements
announcementcenter.page.index
10
This is quite complicated, and i don't know why Apprepository overrides these values (even href) ? Why not using what the navigation manager provides or at least, use as default name for getAppName, not the translated part of appid, but the original name given by
$this->navigationManager->getAll();
What do you think about it ?