Skip to content

Commit 47af88c

Browse files
authored
Fix backslash URI suffix on Windows
Changed `$config->uri` to end with literal '/' instead of using DIRECTORY_SEPARATOR constant.
1 parent 0d10412 commit 47af88c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function config(): AssetsConfig
5454
self::$config = config(AssetsConfig::class);
5555

5656
// Standardize formats
57-
self::$config->uri = rtrim(self::$config->uri, '/\\') . DIRECTORY_SEPARATOR;
57+
self::$config->uri = rtrim(self::$config->uri, '/\\') . '/';
5858
self::$config->directory = rtrim(self::$config->directory, '/\\') . DIRECTORY_SEPARATOR;
5959
self::$config->vendor = rtrim(self::$config->vendor, '/\\') . DIRECTORY_SEPARATOR;
6060
}

0 commit comments

Comments
 (0)