Skip to content

Commit

Permalink
Merge pull request #14 from IRONICBo/fix/yap_page
Browse files Browse the repository at this point in the history
fix: Fix yap template page.
  • Loading branch information
Baihhh committed Feb 1, 2024
2 parents 202ea15 + 5b7162a commit b6aad00
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/gopcomm/community_yap.gox
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand All @@ -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{}
Expand Down
2 changes: 1 addition & 1 deletion cmd/gopcomm/yap/article_yap.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
aria-label="Breadcrumb">
<ol class="inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse">
<li class="inline-flex items-center">
<a href="#"
<a href="/"
class="inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600 dark:text-gray-400 dark:hover:text-white">
<svg class="w-3 h-3 me-2.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"
fill="currentColor" viewBox="0 0 20 20">
Expand Down
4 changes: 2 additions & 2 deletions cmd/gopcomm/yap/edit_yap.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Markdown</title>
<script type="module" crossorigin src="/static/assets/index-JQe8r7ZV.js"></script>
<link rel="stylesheet" crossorigin href="/static/assets/index-eUGQa_hs.css">
<script type="module" crossorigin src="/static/assets/index-2uz3vrDa.js"></script>
<link rel="stylesheet" crossorigin href="/static/assets/index-LlLbasiD.css">
</head>
<body>
<div id="app"></div>
Expand Down

0 comments on commit b6aad00

Please sign in to comment.