diff --git a/src/scripts/post.tag b/src/scripts/post.tag index aaa2d28..a9c41b7 100644 --- a/src/scripts/post.tag +++ b/src/scripts/post.tag @@ -117,6 +117,7 @@ updatePost(postcontent) { self.content = postcontent.content; self.title = postcontent.title; + /* Do not route to this post if we're already on the same route */ if (window.location.pathname !== `/blog/posts/${self._id}`) { self.route(`/posts/${self._id}`); } diff --git a/src/templates/index.html b/src/templates/index.html index 82898a3..6528591 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -3,7 +3,7 @@
-