From 64238e09a9fe02a96b7de54c4df8585fc494484d Mon Sep 17 00:00:00 2001 From: Bo Date: Wed, 31 Jan 2024 21:24:48 +0800 Subject: [PATCH 1/2] fix: Fix yap page. --- cmd/gopcomm/yap/article_yap.html | 2 +- cmd/gopcomm/yap/edit_yap.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/gopcomm/yap/article_yap.html b/cmd/gopcomm/yap/article_yap.html index 6221d6e0..cbe140fb 100644 --- a/cmd/gopcomm/yap/article_yap.html +++ b/cmd/gopcomm/yap/article_yap.html @@ -98,7 +98,7 @@ aria-label="Breadcrumb">
  1. - Markdown - - + +
    From 5b7162a338b3c5d5e2795ba7de385b214feb0276 Mon Sep 17 00:00:00 2001 From: Bo Date: Thu, 1 Feb 2024 10:46:53 +0800 Subject: [PATCH 2/2] fix: Update redirect url. --- cmd/gopcomm/community_yap.gox | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/gopcomm/community_yap.gox b/cmd/gopcomm/community_yap.gox index 448b61cd..301641e5 100644 --- a/cmd/gopcomm/community_yap.gox +++ b/cmd/gopcomm/community_yap.gox @@ -459,7 +459,7 @@ get "/logout", ctx => { http.SetCookie(ctx.ResponseWriter, tokenCookie) // Redirect to home page - http.Redirect(ctx.ResponseWriter, ctx.Request, fmt.Sprintf("http://localhost:8080"), http.StatusFound) + http.Redirect(ctx.ResponseWriter, ctx.Request, fmt.Sprintf("/"), http.StatusFound) } get "/callback", ctx => { @@ -481,7 +481,7 @@ get "/callback", ctx => { // Redirect to home page // TODO: Get redirect URL from state - http.Redirect(ctx.ResponseWriter, ctx.Request, fmt.Sprintf("http://localhost:8080"), http.StatusFound) + http.Redirect(ctx.ResponseWriter, ctx.Request, fmt.Sprintf("/"), http.StatusFound) } conf := &core.Config{}