publish: Add trailing slash for relative urls

generated from commit f74ceb232004a190acf41994c403c5311914adb6