Преглед на файлове

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