From 47af88ccc9507aabf090039193aee9be67772ca8 Mon Sep 17 00:00:00 2001 From: Craig A Rodway Date: Fri, 11 Feb 2022 16:40:41 +0000 Subject: [PATCH] Fix backslash URI suffix on Windows Changed `$config->uri` to end with literal '/' instead of using DIRECTORY_SEPARATOR constant. --- src/Asset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Asset.php b/src/Asset.php index f9a4815..d127114 100644 --- a/src/Asset.php +++ b/src/Asset.php @@ -54,7 +54,7 @@ public static function config(): AssetsConfig self::$config = config(AssetsConfig::class); // Standardize formats - self::$config->uri = rtrim(self::$config->uri, '/\\') . DIRECTORY_SEPARATOR; + self::$config->uri = rtrim(self::$config->uri, '/\\') . '/'; self::$config->directory = rtrim(self::$config->directory, '/\\') . DIRECTORY_SEPARATOR; self::$config->vendor = rtrim(self::$config->vendor, '/\\') . DIRECTORY_SEPARATOR; }