Skip to content

Commit 0d6968f

Browse files
committed
Use paths instead of abolsute urls in manifest
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent 8ead432 commit 0d6968f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

controller/manifest.php

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

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

6565
$manifest = [
6666
'name' => $this->config['sitename'],
6767
'short_name' => $this->config['pwa_short_name'] ?: substr($this->config['sitename'], 0, 12),
6868
'display' => 'standalone',
6969
'orientation' => 'portrait',
7070
'dir' => $this->language->lang('DIRECTION'),
71-
'start_url' => $board_url,
72-
'scope' => $board_url,
71+
'start_url' => $board_path,
72+
'scope' => $board_path,
7373
];
7474

7575
if (!empty($this->config['pwa_icon_small']) && !empty($this->config['pwa_icon_large']))

0 commit comments

Comments
 (0)