From 03eae354f75ed18e869d0fbe8fa5f63f25db3748 Mon Sep 17 00:00:00 2001 From: aichy126 <16996097+aichy126@users.noreply.github.com> Date: Mon, 29 May 2023 15:15:06 +0800 Subject: [PATCH] update IsQuestionsIgnorePath --- internal/controller/template_controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/controller/template_controller.go b/internal/controller/template_controller.go index 589be128..e9048ae3 100644 --- a/internal/controller/template_controller.go +++ b/internal/controller/template_controller.go @@ -230,8 +230,8 @@ func (tc *TemplateController) QuestionInfo(ctx *gin.Context) { id := ctx.Param("id") title := ctx.Param("title") answerid := ctx.Param("answerid") - - if id == "ask" { + if checker.IsQuestionsIgnorePath(id) { + // if id == "ask" { file, err := ui.Build.ReadFile("build/index.html") if err != nil { log.Error(err)