slav123 / CodeIgniter-minify

CodeIgniter minify library CSS and JavaScript compression on the fly
MIT License
226 stars 86 forks source link

Using $config['base_url'] in config.php causes malformed URLs. #50

Closed phanku closed 6 years ago

phanku commented 6 years ago

Using $config['base_url'] in the default config.php will cause malformed generated URLs.

Example:

$config['base_url'] = 'https://example.com/'; 

Results:


<script type="text/javascript" src="https://example.com/https://example.com/assets/scripts.min.js"></script>
michalsn commented 6 years ago

Thanks. Mock for base_url function wasn't working properly in our tests.