From 289c885712f5bcffc083059cd39af9372dc4408f Mon Sep 17 00:00:00 2001 From: Kevin Kaniaburka Date: Wed, 7 Dec 2022 13:43:05 +0100 Subject: [PATCH] Fix HTTP protocol for FOSJSRouting generation --- src/Resources/views/Order/create.html.twig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Resources/views/Order/create.html.twig b/src/Resources/views/Order/create.html.twig index 02275723..cf469768 100644 --- a/src/Resources/views/Order/create.html.twig +++ b/src/Resources/views/Order/create.html.twig @@ -66,7 +66,7 @@ $(this).dropdown('set text', $(this).find('input[type="hidden"]').val()); }); - function loadAvailableShippingMethods($shipmentNumber) { + function loadAvailableShippingMethods() { if (!canShippingMethodBeProvided()) { return; } @@ -74,6 +74,8 @@ let form = $('form'); form.addClass('loading'); + Routing.setScheme(location.protocol.replace(':', '')); + $.ajax({ type: "GET", url: Routing.generate(