substr($url, -1) != '/' and $url .= \Config::get('url_suffix');to:
substr($url, -1) != '/' and !strpos($url, \Config::get('url_suffix')) and $url .= \Config::get('url_suffix');
It looks like you're new here. If you want to get involved, click one of these buttons!