force trailing slash snippet