Add trailing slash to post URL

Related to #1411