Add / at the end of the post URL

Hello guys

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

for example:
change
https://meta.discourse.org/t/url-interceptor-massaging-the-url-in-the-post/9364

to
https://meta.discourse.org/t/url-interceptor-massaging-the-url-in-the-post/9364/

Thanks

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

1 Like

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

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 /.

9 Likes