You've already forked hotpocket
BTHLABS-0000: Use absolute URLs in ui.meta.manifest_json
This commit is contained in:
@@ -12,24 +12,32 @@ def manifest_json(request: HttpRequest) -> JsonResponse:
|
||||
result = {
|
||||
'name': settings.SITE_TITLE,
|
||||
'short_name': settings.SITE_SHORT_TITLE,
|
||||
'start_url': reverse('ui.associations.browse'),
|
||||
'start_url': request.build_absolute_uri(
|
||||
reverse('ui.associations.browse'),
|
||||
),
|
||||
'display': 'standalone',
|
||||
'background_color': '#212529',
|
||||
'theme_color': '#2b3035',
|
||||
'icons': [
|
||||
{
|
||||
'src': static('ui/img/icon-192.png'),
|
||||
'src': request.build_absolute_uri(
|
||||
static('ui/img/icon-192.png'),
|
||||
),
|
||||
'sizes': '192x192',
|
||||
'type': 'image/png',
|
||||
},
|
||||
{
|
||||
'src': static('ui/img/icon-512.png'),
|
||||
'src': request.build_absolute_uri(
|
||||
static('ui/img/icon-512.png'),
|
||||
),
|
||||
'sizes': '512x512',
|
||||
'type': 'image/png',
|
||||
},
|
||||
],
|
||||
'share_target': {
|
||||
'action': reverse('ui.integrations.android.share_sheet'),
|
||||
'action': request.build_absolute_uri(
|
||||
reverse('ui.integrations.android.share_sheet'),
|
||||
),
|
||||
'method': 'POST',
|
||||
'enctype': 'multipart/form-data',
|
||||
'params': {
|
||||
|
||||
Reference in New Issue
Block a user