我正在使用
风格的动态文件夹_category/index.vue
_category/_post.vue
因此example.com/examplecategory呈现类别概述页面,example.com/examplecategory / sidettitle呈现帖子。这很有效。
不幸的是,example.com / examplecategy /(注意尾部斜杠)呈现的内容与url相同,但最后没有斜杠。
有两个问题:
有没有简单的方法将一个版本重定向到另一个版本?对于GA模块,它看起来像带斜线的版本即使我认为我更喜欢没有拖尾斜线,我认为这通常是首选方式。
对此有任何帮助表示赞赏。