How do I disable the trailing slash being added to a URL when using $Link
?
You could override the SiteTree::Link($action=null)
method in the base Page
class like this:
public function Link($action = null)
{
return rtrim(parent::Link($action), '/');
}