2

In my general config I have enabled URLS to have trailing slashes.

'addTrailingSlashesToUrls' => true,

This is working for products and entries. But it is not working on Categories. Category links are not adding trailing slashes.

Is there some additional config I need to add/setup or is this a bug?

4
  • Can you share the code you're using to generate the links? Have you made any modifications to the stock public .htaccess file (assuming you're running Apache)?
    – Brad Bell
    Aug 18, 2016 at 17:23
  • Whoops! Sorry Brad. As I went to check the code I realised, I was using {{ category.uri }} instead of {{ category.url }}. Aug 18, 2016 at 18:04
  • Incidentally what exactly is uri? Aug 18, 2016 at 18:06
  • Ahh... would you mind adding that as an answer? There's a good venn diagram here on URI vs. URL vs. URN: danielmiessler.com/study/url-uri
    – Brad Bell
    Aug 18, 2016 at 18:39

1 Answer 1

4

Whoops! Sorry. As I went to check the code I realised, I was using {{ category.uri }} instead of {{ category.url }}.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.