<%= channel.name %>
diff --git a/lib/chiya_web/controllers/page_html/note.html.heex b/lib/chiya_web/controllers/page_html/note.html.heex
index ae58b25..473742d 100644
--- a/lib/chiya_web/controllers/page_html/note.html.heex
+++ b/lib/chiya_web/controllers/page_html/note.html.heex
@@ -18,7 +18,9 @@
Tags
<%= for tag <- @note.tags do %>
- <%= tag.name %>
+
+ <%= tag.name %>
+
<% end %>
<% end %>
@@ -83,7 +85,7 @@
<.simple_form
:let={f}
for={@changeset}
- action={~p"/#{@note.slug}/comment"}
+ action={~p"/note/#{@note.slug}/comment"}
class="bg-theme-background -m-3"
>
<.error :if={@changeset.action}>
diff --git a/lib/chiya_web/controllers/page_html/tag.html.heex b/lib/chiya_web/controllers/page_html/tag.html.heex
index 3ddfd15..14e5abd 100644
--- a/lib/chiya_web/controllers/page_html/tag.html.heex
+++ b/lib/chiya_web/controllers/page_html/tag.html.heex
@@ -9,7 +9,7 @@
<%= for note <- @tag.notes do %>
<%= note.name %>
diff --git a/lib/chiya_web/live/note_show_live.ex b/lib/chiya_web/live/note_show_live.ex
index 3b23041..f8859d8 100644
--- a/lib/chiya_web/live/note_show_live.ex
+++ b/lib/chiya_web/live/note_show_live.ex
@@ -16,7 +16,7 @@ defmodule ChiyaWeb.NoteShowLive do
<.link href={~p"/admin/notes/#{@note}/edit"}>
<.button>Edit
- <.link href={~p"/#{@note.slug}"}>
+ <.link href={~p"/note/#{@note.slug}"}>
<.button>Preview
<.link href={~p"/admin/notes/#{@note}/raw"}>
@@ -27,7 +27,7 @@ defmodule ChiyaWeb.NoteShowLive do
<.button>Publish
<% else %>
- <.link href={~p"/amdin/notes/#{@note}/unpublish"}>
+ <.link href={~p"/admin/notes/#{@note}/unpublish"}>
<.button>Un-Publish
<% end %>
diff --git a/lib/chiya_web/router.ex b/lib/chiya_web/router.ex
index e6aa06c..c416668 100644
--- a/lib/chiya_web/router.ex
+++ b/lib/chiya_web/router.ex
@@ -130,11 +130,11 @@ defmodule ChiyaWeb.Router do
scope "/", ChiyaWeb do
pipe_through [:browser, :public]
- get "/:slug", PageController, :note
- get "/c/:slug", PageController, :channel
- get "/t/:slug", PageController, :tag
+ get "/note/:slug", PageController, :note
+ get "/channel/:slug", PageController, :channel
+ get "/tagged-with/:slug", PageController, :tag
get "/", PageController, :home
- post "/:slug/comment", CommentController, :create
+ post "/note/:slug/comment", CommentController, :create
end
end