浏览代码

Use slug rather than name of thread

sbkwgh 8 年之前
父节点
当前提交
4b984bb195
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/ThreadPost.vue

+ 1 - 1
src/components/ThreadPost.vue

@@ -78,7 +78,7 @@
 			return {
 				hover: false,
 				showShareModal: false,
-				postURL: `${location.origin}/thread/${post.Thread.name}/${post.ThreadId}/${post.id}`
+				postURL: `${location.origin}/thread/${post.Thread.slug}/${post.ThreadId}/${post.id}`
 			}
 		},
 		methods: {