From 15b070398bc9e81120a8d6728a8d0bdc39a57597 Mon Sep 17 00:00:00 2001 From: Scott Pouliot Date: Fri, 22 May 2026 17:40:14 -0400 Subject: [PATCH] Change URL scheme fallback from https to http Manufacturer product pages are often not on secure connections; http:// is the safer default to avoid connection failures on non-SSL sites. Co-Authored-By: Claude Sonnet 4.6 --- src/PowderCoating.Web/Views/Inventory/Details.cshtml | 2 +- src/PowderCoating.Web/wwwroot/js/inventory-catalog-lookup.js | 2 +- src/PowderCoating.Web/wwwroot/js/inventory-label-scan.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PowderCoating.Web/Views/Inventory/Details.cshtml b/src/PowderCoating.Web/Views/Inventory/Details.cshtml index 23ec7a1..8d6a116 100644 --- a/src/PowderCoating.Web/Views/Inventory/Details.cshtml +++ b/src/PowderCoating.Web/Views/Inventory/Details.cshtml @@ -9,7 +9,7 @@ string SafeUrl(string? url) => string.IsNullOrEmpty(url) ? "#" : (url.StartsWith("http://", StringComparison.OrdinalIgnoreCase) || url.StartsWith("https://", StringComparison.OrdinalIgnoreCase)) - ? url : "https://" + url; + ? url : "http://" + url; } @section Styles { diff --git a/src/PowderCoating.Web/wwwroot/js/inventory-catalog-lookup.js b/src/PowderCoating.Web/wwwroot/js/inventory-catalog-lookup.js index b2a38e9..c202de6 100644 --- a/src/PowderCoating.Web/wwwroot/js/inventory-catalog-lookup.js +++ b/src/PowderCoating.Web/wwwroot/js/inventory-catalog-lookup.js @@ -415,7 +415,7 @@ function ensureAbsoluteUrl(url) { if (!url) return url; - return /^https?:\/\//i.test(url) ? url : 'https://' + url; + return /^https?:\/\//i.test(url) ? url : 'http://' + url; } function syncLinkButton(inputId, linkId, url) { diff --git a/src/PowderCoating.Web/wwwroot/js/inventory-label-scan.js b/src/PowderCoating.Web/wwwroot/js/inventory-label-scan.js index 6406a2e..e41dd14 100644 --- a/src/PowderCoating.Web/wwwroot/js/inventory-label-scan.js +++ b/src/PowderCoating.Web/wwwroot/js/inventory-label-scan.js @@ -552,7 +552,7 @@ function ensureAbsoluteUrl(url) { if (!url) return url; - return /^https?:\/\//i.test(url) ? url : 'https://' + url; + return /^https?:\/\//i.test(url) ? url : 'http://' + url; } function syncLink(inputId, linkId, url) {