Ver Fonte

Redirect with slug to new thread url

sbkwgh há 8 anos atrás
pai
commit
3e80b2f25b
1 ficheiros alterados com 1 adições e 1 exclusões
  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