[eluser]tonanbarbarian[/eluser]
I could be wrong but I think it is because you can use the url suffix in the config to make all urls end in .html for example
Site url is designed to have parameter passed to it that creates the url
Code:
site_url('controller/method')
would return
Code:
https://192.168.250.112/vflan/app/index.php/controller/method
and if the config url suffix is set
Code:
$config['url_suffix'] = ".html";
would return
Code:
https://192.168.250.112/vflan/app/index.php/controller/method.html
so if site_url put the / on the end the url suffix would not work
Code:
https://192.168.250.112/vflan/app/index.php/controller/method/.html
Now you might be wondering what url site_url is going to create for the case when the parameter is empty
well it determine what your default controller is from your config and goes to the index method
Code:
$route['default_controller'] = "welcome";
site_url() will produce
Code:
https://192.168.250.112/vflan/app/index.php/welcome/index.html