Skip to content

Commit 46ab3b6

Browse files
committed
Use absolute URL for consistency
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent e952d79 commit 46ab3b6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

controller/manifest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,29 +60,29 @@ public function handle(): JsonResponse
6060
throw new http_exception(Response::HTTP_FORBIDDEN, 'Forbidden');
6161
}
6262

63-
$root_path = $this->path_helper->get_web_root_path();
63+
$board_url = generate_board_url() . '/';
6464

6565
$manifest = [
6666
'name' => $this->config['sitename'],
6767
'short_name' => substr($this->config['sitename'], 0, 12), // TODO need an ACP option for short name
6868
'display' => 'standalone',
6969
'orientation' => 'portrait',
7070
'dir' => $this->language->lang('DIRECTION'),
71-
'start_url' => $root_path,
72-
'scope' => $root_path
71+
'start_url' => $board_url,
72+
'scope' => $board_url,
7373
];
7474

7575
// TODO add support for icons
7676
if (isset($this->config['wpn_app_icon_small'], $this->config['wpn_app_icon_large']))
7777
{
7878
$manifest['icons'] = [
7979
[
80-
'src' => $root_path . 'images/icons/' . $this->config['wpn_app_icon_small'],
80+
'src' => $this->config['icons_path'] . $this->config['wpn_app_icon_small'],
8181
'sizes' => '192x192',
8282
'type' => 'image/png'
8383
],
8484
[
85-
'src' => $root_path . 'images/icons/' . $this->config['wpn_app_icon_large'],
85+
'src' => $this->config['icons_path'] . $this->config['wpn_app_icon_large'],
8686
'sizes' => '512x512',
8787
'type' => 'image/png'
8888
]

0 commit comments

Comments
 (0)