Add trailing slash warning

This commit is contained in:
Hillel Coren 2021-11-23 13:18:26 +02:00
parent 91e1cd9fe9
commit cee736061b
2 changed files with 11 additions and 5 deletions

View File

@ -167,6 +167,12 @@ class _HealthCheckDialogState extends State<HealthCheckDialog> {
isWarning: true,
url:
'https://invoiceninja.github.io/docs/self-host-troubleshooting/#pdf-conversion-issues',
),
if (_response.trailingSlash)
_HealthListTile(
title: 'APP_URL has trailing slash',
subtitle: 'Remove the slash in the .env file',
isWarning: true,
)
],
),

View File

@ -1263,16 +1263,16 @@ void _showAbout(BuildContext context) async {
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
IconButton(
tooltip: 'Facebook',
onPressed: () => launch(kFacebookUrl),
icon: Icon(MdiIcons.facebook),
),
IconButton(
tooltip: 'Twitter',
onPressed: () => launch(kTwitterUrl),
icon: Icon(MdiIcons.twitter),
),
IconButton(
tooltip: 'Facebook',
onPressed: () => launch(kFacebookUrl),
icon: Icon(MdiIcons.facebook),
),
IconButton(
tooltip: 'GitHub',
onPressed: () => launch(kGitHubUrl),