From 3f32a14b1a5ec1547f5db618ea2f6ad1af244bb8 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 29 Apr 2018 11:14:34 +0300 Subject: [PATCH] Handle uppercase APP_URL --- resources/views/invoices/edit.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 4238c79c76ae..cef1eb0cf7cb 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -1483,7 +1483,7 @@ $('#saveButton, #emailButton, #draftButton').attr('disabled', true); // if save fails ensure user can try again $.post('{{ url($url) }}', $('.main-form').serialize(), function(data) { - if (data && data.indexOf('http') === 0) { + if (data && data.toLowerCase().indexOf('http') === 0) { NINJA.formIsChanged = false; location.href = data; } else {