LinkinStars commented on PR #1135:
URL: 
https://github.com/apache/incubator-answer/pull/1135#issuecomment-2415995482

   > The status of the document should also return 404, so as to improve SEO
   > 
   
   @sy-records To solve this problem, you may need to change the return value 
when the `template` is accessed.
   
   
https://github.com/apache/incubator-answer/blob/8e6fa13c72dae18b8c516bf349928f9d3109988c/internal/controller/template_controller.go#L143-L147
   
   It may be need to add code similar to the following, when the data does not 
exist.
   
   ```go
        if len(data) == 0 {
                tc.Page404(ctx)
                return
        }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to