Skip to content

Commit 6c9f06c

Browse files
committed
Add trailing slash check for base_url() changes
1 parent 16068cd commit 6c9f06c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Libraries/Assets.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ public function __construct($config = null)
9999
{
100100
$this->config->webBase = base_url($this->config->webBase);
101101
}
102+
103+
// Make sure webBase has a trailing slash
104+
$this->config->webBase = rtrim($this->config->webBase, '/') . '/';
102105
}
103106

104107
// Return the code block for gathered CSS assets as tags

0 commit comments

Comments
 (0)