diff --git a/full-skies-nuxt/pages/astres/_id.vue b/full-skies-nuxt/pages/astres/_slug.vue similarity index 93% rename from full-skies-nuxt/pages/astres/_id.vue rename to full-skies-nuxt/pages/astres/_slug.vue index cdc457c..43d4f8e 100644 --- a/full-skies-nuxt/pages/astres/_id.vue +++ b/full-skies-nuxt/pages/astres/_slug.vue @@ -34,13 +34,6 @@ export default { NestLoader }, - props: { - slug: { - type: String, - required: true - } - }, - data () { return { celestial: {}, @@ -52,7 +45,7 @@ export default { mounted () { // Fetches from API... - fetchCelestial(this.slug) + fetchCelestial(this.$route.params.slug) .then((res) => { this.celestial = addCelestialType(res) this.celestialLoaded = true