소스 검색

Redirect with slug to new thread url

sbkwgh 8 년 전
부모
커밋
3e80b2f25b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/routes/ThreadNew.vue

+ 1 - 1
src/components/routes/ThreadNew.vue

@@ -54,7 +54,7 @@
 						content: this.editor
 					})
 				}).then(res => {
-					this.$router.push('/thread/' + res.data.Thread.id)
+					this.$router.push(`/thread/${res.data.Thread.slug}/${res.data.Thread.id}`)
 				}).catch(e => {
 					AjaxErrorHandler(this.$store)(e, (error, errors) => {
 						let param = error.parameter