Forráskód Böngészése

Redirect with slug to new thread url

sbkwgh 8 éve
szülő
commit
3e80b2f25b
1 módosított fájl, 1 hozzáadás és 1 törlés
  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