This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
    brian8245
    
            
            
                    
                                            
        
    
        In Helper.php, the following code removes the trailing slash from the end of URLs:
public static function normalizeUrl($url)
    {
        if (substr($url, 0, 1) != '/')
            $url = '/'.$url;
        if (substr($url, -1) == '/')
            $url = substr($url, 0, -1);
        if (!strlen($url))
            $url = '/';
        return $url;
    }
How do I restore the trailing slash so that October renders the URLs with the trailing slash?
Moderator edit: Formatted code block
Last updated
    Filip Pacurar
    
            
            
                    
                                            
        
    
        you could to a custom helper function that calls the original function but add .'/' at the end.
1-2 of 2