There is a requirement of SEO optimization in nuxt.js project. It requires every route inside the project need add a trailing slash. How to solve the problem?
By the way, there is a question about it, but the accepted answer is not right for me. the question link is here:
2
Answers
Hi 🙂 You need install
@nuxtjs/redirect-module
and add below rule tonuxt.config.js
.My answer is based on antonku’s answer.
The answer from @kanapka94 is correct but incomplete. You need to add the module to your
modules
attribute in your nuxt configuration, e.g: