Add trailing slash to URLs (dynamic mode)