Add / at the end of the post URL

(marioMAN) #1

Hello guys

Is there an easy way to add a / at the the end of discourse urls?

for example:



(Jeff Atwood) #2

Sorry what purpose would that serve? Why does it matter? Why would anyone care about this? What are you trying to accomplish?

(marioMAN) #3

I know its pretty silly, but new company policies say all urls must end with /
bc is the “canonical” way of doing it

(Jeff Atwood) #4

That isn’t even correct — URLs that end in / imply you are looking at a “directory” instead of a “file”:

Since on the web you are viewing files with “content”, not a directory listing, URLs shouldn’t typically end with /.