WeAreAthlon / Silla.IO

PHP Application Development Framework.
https://silla.io
GNU General Public License v3.0
25 stars 3 forks source link

Core\Router()->toUrl() function is adding extra slash (URL separator) #40

Closed rozalia closed 9 years ago

rozalia commented 9 years ago

The issue is due to inserting Core\Config()->ROUTER['separator'] even if the current mode has no prefix (e.g the default app).

Possible fix would be to amend the $mode['url'] before using it to format the URL:

$mode['url'] = $mode['url'] ? $mode['url'] . Core\Config()->ROUTER['separator'] : '';