@@ -372,9 +372,28 @@ public function getStylesheet() {
372372 */
373373 public function getManifest ($ app ) {
374374 $ cacheBusterValue = $ this ->config ->getAppValue ('theming ' , 'cachebuster ' , '0 ' );
375+ if ($ app === 'core ' ) {
376+ $ name = $ this ->themingDefaults ->getName ();
377+ $ short_name = $ this ->themingDefaults ->getName ();
378+ $ start_url = $ this ->urlGenerator ->getBaseUrl ();
379+ $ description = $ this ->themingDefaults ->getSlogan ();
380+ } else {
381+ $ info = $ this ->appManager ->getAppInfo ($ app );
382+ $ name = $ info ['name ' ] . ' - ' . $ this ->themingDefaults ->getName ();
383+ $ short_name = $ info ['name ' ];
384+ if (strpos ($ this ->request ->getRequestUri (), '/index.php/ ' ) !== false ) {
385+ $ start_url = $ this ->urlGenerator ->getBaseUrl () . '/index.php ' . $ this ->urlGenerator ->linkTo ($ app , '' );
386+ } else {
387+ $ start_url = $ this ->urlGenerator ->getBaseUrl () . $ this ->urlGenerator ->linkTo ($ app , '' );
388+ }
389+ $ description = $ info ['summary ' ];
390+ }
375391 $ responseJS = [
376- 'name ' => $ this ->themingDefaults ->getName (),
377- 'start_url ' => $ this ->urlGenerator ->getBaseUrl (),
392+ 'name ' => $ name ,
393+ 'short_name ' => $ short_name ,
394+ 'start_url ' => $ start_url ,
395+ 'background_color ' => $ this ->themingDefaults ->getColorPrimary (),
396+ 'description ' => $ description ,
378397 'icons ' =>
379398 [
380399 [
0 commit comments